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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 37
» Latest member: Ludwig
» Forum threads: 203
» Forum posts: 1,542

Full Statistics

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

Latest Threads
Raylib and SmallBASIC....
Forum: Programming
Last Post: aurel
5 hours ago
» Replies: 1
» Views: 22
A diligent BASIC dialect(...
Forum: Programming
Last Post: luwal
Yesterday, 11:05 PM
» Replies: 2
» Views: 63
RW3
Forum: NaaLaa 7 Code
Last Post: 1micha.elok
Yesterday, 05:21 AM
» Replies: 6
» Views: 606
It's that time of year ag...
Forum: Everything else
Last Post: 1micha.elok
Yesterday, 05:09 AM
» Replies: 1
» Views: 47
Why all 80's Computers ha...
Forum: Everything else
Last Post: johnno56
05-03-2025, 02:08 PM
» Replies: 3
» Views: 106
The most used BASIC diale...
Forum: Programming
Last Post: johnno56
05-02-2025, 01:01 AM
» Replies: 13
» Views: 504
Most used game engines on...
Forum: Everything else
Last Post: johnno56
05-01-2025, 04:55 AM
» Replies: 1
» Views: 68
Suggestion: other classic...
Forum: Suggestions
Last Post: luwal
04-29-2025, 02:05 AM
» Replies: 2
» Views: 168
Suggestion: an example fo...
Forum: Suggestions
Last Post: luwal
04-27-2025, 06:16 PM
» Replies: 3
» Views: 185
BASIC replicator!
Forum: Everything else
Last Post: luwal
04-26-2025, 03:49 AM
» Replies: 2
» Views: 224

 
  N7 version 24.07.30 released
Posted by: Marcus - 07-30-2024, 09:33 AM - Forum: Announcements - Replies (5)

Just some small fixes.

https://naalaa.com/n7/N7_240730.zip

2024-07-30

  • s3d: Fixed a bug in S3D_BlendMesh
  • s3d: Added the S3D_SetPerspectiveCorrection function
  • enginea: Fixed a bug that made the jump height of the EA_FpsPlayer object dependant on the frame rate
  • Fixed a bug (crash) in the enginea editor

Print this item

  Star Trek
Posted by: 1micha.elok - 07-23-2024, 11:14 AM - Forum: NaaLaa 7 Code - Replies (17)

       
click each image to zoom-in

================================
STAR TREK N7
simplified and modified version

Inspired by the 1970s Star Trek
by Mike Mayfield and Bob Leedom
================================

Code:
'Initial Message
set caret 10,20
set color black; cls;set color white
wln "     ______ _______ ______ ______   _______ ______  ______ __ __  "
wln "    / __  //__  __// __  // __  /  /__  __// __  / / ____// // /® "
wln "   / / /_/   / /  / /_/ // /_/ /     / /  / /_/ / / /__  / // /   "
wln "  __\ \     / /  / __  //   __/     / /  /   __/ / __ / /    /    "
wln " / /_/ /   / /  / / / // /\ \      / /  / /\ \  / /___ / /\ \     "
wln "/_____/   /_/  /_/ /_//_/  \_\    /_/  /_/  \_\/_____//_/  \_\    "
wln
wln " YOU ARE THE CAPTAIN OF THE STARSHIP ENTERPRISE"
wln " SEEK AND DESTROY THE KLINGONS"
wln " THEY ARE MENACING THE UNITED FEDERATIONS OF PLANETS"


Coming Soon !

Big Grin Big Grin Big Grin

Note :
   
Will Mr.Spock as Captain Kirk's second-in-command accept the Klingon's challenges ?

Print this item

  Question about snake game
Posted by: aliensoldier - 07-19-2024, 05:48 PM - Forum: NaaLaa 7 Questions - Replies (11)

I have a question about the snake game. The snake's body is divided into small pieces and they follow the head. How can I make the pieces that make up the body follow the head of the snake when I move it?

Print this item

Big Grin Windows Program Console
Posted by: dantas72 - 07-14-2024, 09:39 PM - Forum: NaaLaa 7 Questions - Replies (2)

What's up guys! Can we have examples of practical use of codes for the Windows console?

1 - Search.
2 - create directory.
3 - A program to receive two numbers from the user and make the sum and display it on the screen.
4 - Remove directories.
5 - Search within files, .txt, Doc.
6 - Basic Mini Compiler.
7 - Receive arguments via the prompt command line.

Something to learn more about the language.
thanks Smile

Print this item

  Animated String Art
Posted by: johnno56 - 07-11-2024, 08:36 PM - Forum: NaaLaa 7 Code - Replies (4)

Not sure if I had posted this before... If I have, let me know, and I will delete it... lol

This is a converted QB64 demo created by BPlus... 

If you are as old or older than I am then this will be a "flash back"... If you are young, then stare continuously at the rotating pattern, then transfer all your savings to the following account number... Moo Ha Ha Ha Ha....

Variable "t" on line #41 will determine the number of "points" to be drawn. The program will start with one point and increment by one until "t" is reached. Then it starts over again using a different colour... ESC to quit.

Code:
' Open a window and enable double buffering.
set window "String Art Animated", 600, 600, false
set redraw off

'   Converted from a QB64 program by BPlus

randomize clock()

visible xmax = 600
visible ymax = 600
visible a1, a2, cx, cy, r, s, n, pi, t
visible red, blue, green

r = ymax / 2
cx = xmax / 2
cy = ymax / 2
n = 250
s = 360 / n

red = 175
green = 255
blue = 255

pi = 3.141592654

t = 1

do
    set color 0, 0, 0
    cls
    'set color red, green, blue
    draw ellipse cx - 1, cy, r, r
    for i = 1 to n
        a1 = s * i
        a2 = s * i * t
        set color red, green , blue
        draw line cx + sin(d2r(a1)) * r, cy + cos(d2r(a1)) * r, cx + sin(d2r(a2)) * r, cy + cos(d2r(a2)) * r
    next
   
    t = t + 0.0125
    if t >= 20
        t = 1
        red = 32 + rnd(33, 255)
        green = 32 + rnd(33, 255)
        blue = 32 + rnd(33, 255)
    endif

    redraw
    fwait 60   
until keydown(KEY_ESCAPE, true)

'   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
function d2r(angle)
    return angle * (pi / 180)
endfunc
'   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Print this item

  out in memory in Malloc ,new version
Posted by: oskarg - 07-03-2024, 08:35 AM - Forum: NaaLaa 7 Questions - Replies (5)

Good morning, when I was compiling the base examples I got this :
   
Since I can solve the problem, it doesn't allow me to run Naalaa now.

Print this item

  N7 version 24.06.29 released
Posted by: Marcus - 06-29-2024, 03:31 PM - Forum: Announcements - Replies (3)

This release contains a first version of the enginea library, meant for sector based first person shooter games. This is far from the final version of the library; support for meshes is very basic and has not been tested much.

https://naalaa.com/n7/N7_240629.zip

2024-06-29

  • Added the enginea library and editor (enginea_editor.exe), for sector based first person shooter games, plus a tutorial (EngineA_Tutorial.pdf) and examples in examples/enginea_library

Print this item

  Can you beleive ...
Posted by: aurel - 06-20-2024, 04:36 PM - Forum: Everything else - Replies (27)

this shit:

Your system is outdated and exposed to attack.

Mint 17.3 Big Grin Big Grin Big Grin

Print this item

  Confused about mid() command
Posted by: johnno56 - 06-11-2024, 01:39 AM - Forum: NaaLaa 7 Questions - Replies (7)

Hi Marcus,

I was tinkering with string manipulation and came across a bit of a 'poser' in regards to the mid() command.

Here is a short example....

Code:
' Open a window and enable double buffering.
set window "Test", 800, 632, false
set redraw off

visible a = "ABCDEF"
visible b
visible c

'   display the letters "B" to "E" inclusive...
b = mid(a, 1, 4)
pln b
'   This works fine...

'   But, when I try to make the third letter "D"
'   an "X"...

'   mid(b, 3, 1) = "X"
'   pln b

'   I get a syntax error on line 17 during compile

'(remove the "remarks" from lines 17 and 18
' to see what I mean...)

system "pause"

Defining a string then assigning a variable to a "portion" of the string, using mid(), works fine...
But, trying to replace a character, using mid() causes the compilation to fail with a syntax error.

There is no rush on this one... Whenever you are able... Present situation understood... We will "keep an eye on the store" during your break...

J

Print this item

Star Gone for a while
Posted by: Marcus - 06-10-2024, 01:33 PM - Forum: Everything else - Replies (2)

I just want to say that I'll be "gone" for a while, in case you wonder why I don't post or reply. Lots of personal things going on, so I don't have any time left for n7. Probably it will get better in a week or two.

Print this item