Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 35
» Latest member: coronaman
» Forum threads: 158
» Forum posts: 1,289

Full Statistics

Online Users
There are currently 74 online users.
» 0 Member(s) | 73 Guest(s)
Bing

Latest Threads
Irregular Beauty
Forum: NaaLaa 7 Code
Last Post: Marcus
01-09-2025, 07:38 PM
» Replies: 2
» Views: 167
Burning polygon mess
Forum: NaaLaa 7 Code
Last Post: johnno56
01-06-2025, 11:16 AM
» Replies: 3
» Views: 178
Things falling down
Forum: NaaLaa 7 Code
Last Post: 1micha.elok
01-06-2025, 01:51 AM
» Replies: 4
» Views: 246
Fireworks
Forum: NaaLaa 7 Code
Last Post: johnno56
01-02-2025, 03:29 PM
» Replies: 3
» Views: 264
Happy New Year 2025
Forum: Everything else
Last Post: Marcus
01-02-2025, 07:18 AM
» Replies: 3
» Views: 265
GOLDEN WAVES (repost and ...
Forum: NaaLaa 7 Code
Last Post: Marcus
01-01-2025, 10:13 AM
» Replies: 9
» Views: 719
Start of a Christmas plat...
Forum: NaaLaa 7 Code
Last Post: johnno56
12-29-2024, 03:00 AM
» Replies: 2
» Views: 247
Merry Christmas
Forum: Everything else
Last Post: aliensoldier
12-27-2024, 07:29 PM
» Replies: 4
» Views: 365
Sprite Editor
Forum: NaaLaa 7 Questions
Last Post: johnno56
12-25-2024, 08:24 PM
» Replies: 2
» Views: 300
min TEST 1
Forum: Programming
Last Post: johnno56
12-24-2024, 10:53 AM
» Replies: 11
» Views: 8,147

 
  Canabis Curve (repost)
Posted by: 1micha.elok - 12-20-2024, 02:48 PM - Forum: NaaLaa 7 Code - Replies (1)

Cannabis curve
 repost from old archive
 date:08-07-2022


Code:
' ------------------------------------------------
' Cannabis curve
' repost from old archive N7 Marcus
' date:08-07-2022
' see also
' https://www.facebook.com/groups/2057165187928233
'
' control key :
' ESC to quit
' ------------------------------------------------

'set window size
#win32
set window "Cannabis curve", 640, 480
set redraw off
randomize time()

'color definition
black = [0,0,0]
green = [0,200,0]
white = [255,255,255]

'initial value
px = 0; py = 0
detail = 0.01

'Main loop
do

    set color black; cls 'clear screen

    set color rnd(100,255),rnd(50,255),rnd(50,255) 'random color of canabis curve

    for a = 0 to 2*PI step detail

        'calculate coordinate
        x = width()/2 + 100*(sin(a) + 1)*cos(a)*(9*cos(8*a)/10 + 1)*(cos(24*a)/10 + 1)*(cos(200*a)/10 + 9/10)
        y = 64+100*sin(a)*(sin(a) + 1)*(9*cos(8*a)/10 + 1)*(cos(24*a)/10 + 1)*(cos(200*a)/10 + 9/10)
   
        'each time, continue draw line from the last point
        if a > 0  then
            draw line px, py, x, y
            draw line px-5,py-5,x-5,y-5
            draw line px-10,py-10,x-10,y-10
            draw line px-15,py-15,x-15,y-15
        endif
        px = x; py = y  'swap value 
       
        'Escape to quit
        if keydown(KEY_ESCAPE,true) then end
   
        fwait 100
        redraw
    next

    fwait 100
loop

Print this item

  Mark Sibly, the creator of Blitz Basic has sadly passed away.
Posted by: luwal - 12-14-2024, 04:01 AM - Forum: Programming - Replies (3)

Mark Sibly, the creator of Blitz Basic (as well as one of the developers of games like Gloom, Skidmarks and Guardian) has sadly passed away.

https://www.syntaxbomb.com/general-discu...ssed-away/
https://eab.abime.net/showthread.php?t=119298

Print this item

  Just Another Interpreted Language
Posted by: 1micha.elok - 12-12-2024, 12:19 PM - Forum: Programming - Replies (1)

Under Snow, Mistletoe, and Code
It was December 2018, a time when snow blanketed Drottninggatan ninggalike a quilt, muffling the sounds of the bustling world. The holiday spirit filled the air—shops glimmered with golden lights, the scent of mulled wine and roasted chestnuts danced through the frosty breeze, and mistletoe hung from every other doorframe, daring the shy to embrace the season's magic.

But in a small, cozy apartment overlooking the lake Vattern, Marcus was immersed in something far from festive. Instead of tinsel or wrapping paper, his desk was strewn with notebooks, half-empty coffee mugs, and a laptop that hummed faintly under its own overuse. The screen glowed with lines of text—cryptic to some, revolutionary to Marcus. He was building a language. Not one of syntax and grammar for poets or linguists, but a new programming language he called JAIL—short for "Just Another Interpreted Language."

It wasn’t the most glamorous name, but Marcus found the humor in it. "Everyone's in some kind of jail when they're coding," he’d joked to his friends when he pitched the idea. His vision was simple yet ambitious: a minimalist, flexible scripting language that could execute quickly without bogging down the programmer with unnecessary complexity.

A Cozy Cage for Creativity
The snow had begun to fall heavier outside, but Marcus was too deep into his work to notice. The heart of JAIL was almost complete. He had crafted a unique syntax that blended the readability of NaaLaa and Lua with the expressive power of C. 

Code:
/*
* File: input.txt
* ---------------
*/

system := import("system.txt");
string := import("string.txt");

/* Ask for name and use rln (read line) to get input from user. */
system.write("Enter your name, dude: ");
name = system.rln();

/* Annoy user until it enters y or Y. */
system.write("Your name is " + name + "? (y/n) ");
while (string.lower(string.charAt(system.rln(), 0)) <> "y") {
    system.wln("You have to answer yes, or this program will never end!");
    system.write("So, is " + name + " your name? (y/n) ");
}

A Visitor in the Cold
As Marcus wrestled with a bug in the interpreter, there was a knock at his door. Frowning, he glanced at the clock—it was nearly midnight. Who would be visiting now? He shuffled to the door, stepping over scattered papers, and opened it to find an older woman standing under the flickering hallway light. She wore a thick red coat and carried a basket filled with what looked like freshly baked cookies.
“Mistletoe,” she said with a smile, pointing upward. Marcus blinked, realizing there was indeed a sprig of mistletoe hanging above the doorframe.

“Oh, uh, right,” he stammered awkwardly. The woman chuckled and handed him a cookie.

“I’m Mrs. Elsa from down the hall. Just thought I’d spread a bit of cheer. Been hearing you typing away for weeks now. Whatever you’re working on, don’t forget to enjoy the holidays.”

Marcus smiled for the first time in hours. “Thanks, Mrs. Elsa. I’ll, uh, try.”

She nodded, leaving him with the cookie and a faint sense of warmth he hadn’t felt in weeks.

A Breakthrough
Back at his desk, the cookie in hand, Marcus stared at the line of code that had been driving him crazy. Mrs. Elsa’s words echoed in his head. He realized he’d been so focused on making the language perfect that he’d forgotten why he was doing it in the first place: to make coding feel fun again. He relaxed, took a bite of the cookie, and typed:
jail

Code:
do enjoy_holidays():
    system.write ("Take a break, Marcus.")
Of course, the interpreter spat out an error—JAIL didn’t yet support recursion in user-defined functions. But that bug, he realized, was tied to the same issue he’d been wrestling with for hours. With a newfound clarity, he rewrote the core logic. Snow continued to fall outside, mistletoe hung silently above the door, and JAIL grew closer to completion.

A Gift to the World
By the time the new year arrived, JAIL was ready for its first public test. Marcus shared the project in the deep web as NaaLaa Creator with an introductory note: “Coding should be fun. Here’s my attempt at making it so.”

Though it never became the next Python or NaaLaa, JAIL found its way into the hearts of a small but passionate community. Developers shared tips and tricks, extending the language with plugins and features Marcus had never dreamed of.

Every December, the JAIL community gathered virtually to reminisce about its quirky origins. Marcus always made sure to hang mistletoe by his desk—not as a promise of romance, but as a reminder of the kindness and joy that inspired his work under the snow six years ago.

Note :
The author remains an enigmatic figure, shrouded in an impenetrable veil of anonymity, his identity concealed within layers of obscurity, thus perpetuating an aura of mystery that both fascinates and confounds those who seek to unravel the essence of his existence.

Print this item

  TTF fonts
Posted by: johnno56 - 12-11-2024, 07:07 AM - Forum: NaaLaa 7 Questions - Replies (11)

A quick font question. Is there a reason as to why "ttf" fonts do not work with N7. Not a "deal breaker"... Just wanting to know, as the process of using the "N6" font tool, can be a little tedious if I need to use multiple font sizes... Use the Bitmap font generator site to load the ttf then export for each font size; then use the font tool to create an ftn file for each size...

This is only an issue if I do not have the font already in the system.... Just curious...

Print this item

  Text Effect
Posted by: 1micha.elok - 12-08-2024, 03:49 PM - Forum: NaaLaa 7 Questions - Replies (11)

In Naalaa 5, we can make a moving text effect like in an old action / superhero movie like this :

   
click the image to zoom in

How to do the same effect in N7 ?

Print this item

  chatGPT
Posted by: 1micha.elok - 12-08-2024, 03:37 PM - Forum: Everything else - Replies (3)

What is naalaa programming language ?

   
click the image to zoom in 

According to chatGPT :
Naalaa (short for "Not Another Advanced Adventure Language and Adventure Compiler") is a programming language and environment primarily aimed at creating retro-style 2D games, particularly adventure games. It is designed to be beginner-friendly, making it accessible to hobbyists, educators, and developers interested in game development.

Adventure Language and Adventure Compiler ? 

yeaaah.... let's make a RPG adventure game style .... Big Grin

Print this item

  Steel Wool
Posted by: johnno56 - 12-05-2024, 09:31 AM - Forum: NaaLaa 7 Code - Replies (7)

I came across an old 2D burning forest simulation. Figured, due to the change in the environmental outlook over the years, that I would change it to Steel Wool... it reminded me of a time when I shoved a 9 volt battery into a ball of steel wool (brillo pad)... A completely useless piece of code... Spent mere minutes converting it... lol

   


.n7   steelwool.n7 (Size: 1.32 KB / Downloads: 8)

Print this item

  Suggestion: support dynamic link library(Raylib)
Posted by: luwal - 12-04-2024, 03:27 AM - Forum: Suggestions - Replies (7)

Hello...

Please watch this showcase first: https://www.youtube.com/watch?v=GdlGE-eDlzg

Raylib looks popular and many languages can be used with it(also SmallBASIC and FreeBASIC): https://github.com/raysan5/raylib/blob/m...INDINGS.md

Informatiion of Raylib: https://www.raylib.com/

My suggestion: making NaaLaa support dynamic link library.  Then users can use popular game libraries. (Raylib, etc.)

NaaLaa will be much more versatile!!! Shy

Print this item

  An old screenshot
Posted by: Marcus - 11-27-2024, 08:45 PM - Forum: Everything else - Replies (2)

I was checking out an old (2003) webpage of mine using the wayback machine. It mostly contained photos of my son (got him when i was still studying at the university). But there was also a single screenshot of a first person shooter I was working on. I wonder what happened to it?



Attached Files Thumbnail(s)
   
Print this item

  Doodle
Posted by: johnno56 - 11-25-2024, 07:23 PM - Forum: NaaLaa 7 Code - Replies (7)

This is a QB64 converted graphics demo by "Dav". It had no name... figured doodle is better than nothing... lol

Code:
' Open a window and enable double buffering.
set window "Doodle", 640, 640, false
set redraw off

visible i, t, x, y, w, h, pi

pi = 3.141592654
w = 640
h = 640

do
    t = t + 0.01
    set color 0, 0, 0, 25

    draw rect 0, 0, w, h, true
    for i = 1 to 8
        set color i * 32, i * 32 * 0.7, 0, i * 32
        for x = 0 to w
            y = 100 * sin(pi * x / w) * sin(1 * pi * x / w + t + i * t * pi * 0.1)
            draw ellipse x, h / 2 + y, i, i
            draw ellipse w / 2 + y, x, i, i
        next
    next

    redraw
    fwait 30
until keydown(KEY_ESCAPE, true)

Print this item