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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 10
» Latest member: 1micha.elok
» Forum threads: 16
» Forum posts: 52

Full Statistics

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

Latest Threads
1945 simplified
Forum: NaaLaa 7 Code
Last Post: 1micha.elok
4 hours ago
» Replies: 0
» Views: 10
Problem with constant - m...
Forum: NaaLaa 7 Questions
Last Post: johnno56
Yesterday, 06:23 PM
» Replies: 4
» Views: 26
Robowack - N7 version
Forum: NaaLaa 7 Code
Last Post: johnno56
11-25-2023, 11:35 AM
» Replies: 3
» Views: 73
Bomb Sweeper - N5 to N7
Forum: NaaLaa 7 Code
Last Post: Marcus
11-25-2023, 08:14 AM
» Replies: 0
» Views: 23
Temporary place for forum...
Forum: Suggestions
Last Post: luwal
11-25-2023, 07:37 AM
» Replies: 2
» Views: 74
Old Stuff
Forum: NaaLaa 6 Questions
Last Post: johnno56
11-23-2023, 11:01 PM
» Replies: 6
» Views: 142
Rock Blaster by me
Forum: NaaLaa 6 Code
Last Post: Marcus
11-23-2023, 06:41 PM
» Replies: 0
» Views: 30
Zombie Tumult by me
Forum: NaaLaa 6 Code
Last Post: Marcus
11-23-2023, 06:04 PM
» Replies: 0
» Views: 31
Pat by JSM
Forum: NaaLaa 6 Code
Last Post: Marcus
11-23-2023, 05:55 PM
» Replies: 0
» Views: 32
Space Pooper by JSM
Forum: NaaLaa 6 Code
Last Post: Marcus
11-23-2023, 05:33 PM
» Replies: 0
» Views: 29

  1945 simplified
Posted by: 1micha.elok - 4 hours ago - Forum: NaaLaa 7 Code - No Replies

Air fighter 1945 in a very very simplified version

The main structure of code is divided in two sections :

1. Initialization
    load image : plane
    load image : bullet
    load image : enemy
    load image : background

2. Main Program (Looping)
    Draw the plane
    Define keys : Esc to quit, Left and Right to move the plane
    Draw enemies
    Bullet is auto shoot

Still have miss lots of features  Big Grin ... somebody please add some code to detect collision between a bullet and an enemy, I am running out of idea on how to code collision detect  Sad

set window "1945 Simplified", 640, 480
load image 1,"data/plane.png"
load image 2,"data/bullet.png"
load image 3,"data/enemy.png"
load image 4,"data/black.png"

planeX=640/2        ; planeY=400
bulletX = planeX+15 ; bulletY = planeY
enemyX = []         ; enemyY = []
enemyX[0] = 40      ; enemyY[0] = -10
enemyX[1] = 300     ; enemyY[1] = -50
enemyX[2] = 400     ; enemyY[2] = -30

     draw image 4,0,0

     draw image 1,planeX,planeY
     if keydown(KEY_ESCAPE) then end
     if keydown(KEY_LEFT)   then planeX=planeX-speed
     if keydown(KEY_RIGHT)  then planeX=planeX+speed

     for x=0 to 2
        if enemyY[x]>480 then

      for x=0 to 2
        draw image 3,enemyX[x],enemyY[x]
      if bulletY < 480 then
        bulletY   =   bulletY - speed*3
      if bulletY = 100 then
        bulletX = planeX+15
        bulletY = planeY
      draw image 2,bulletX,bulletY

      wait 40

Attached Files
.zip   1945simplified.zip (Size: 16.2 KB / Downloads: 1)
Print this item

  Problem with constant - maybe
Posted by: johnno56 - Yesterday, 07:14 AM - Forum: NaaLaa 7 Questions - Replies (4)


I am attempting to "restock" my "to N7" conversions and have come across a bit of a puzzle in regards to "constant"

The error in line #10 seems to be objecting to "pr". If I change "pr" to the value of "pr", as in the previous constant, to 16 - "constant pr2 = 2 * 16" the error clears. Then the same error occurs for line #11 and 12. Keying in the actual value of "xmax" and "tl" clears the error.

Similar error for lines 14 and 15.

It looks like that constant does not like using or referring to a previous constant value.

Also, constant does not seem to like int(), in lines 14, 15 and 17.

Could there be an issue with 'constant' or perhaps I am doing this incorrectly... My money is on the latter... lol


Print this item

  Bomb Sweeper - N5 to N7
Posted by: Marcus - 11-25-2023, 08:14 AM - Forum: NaaLaa 7 Code - No Replies

I found the source code of a minsweeper game on a backup drive. I think it's for n5, but it might be even older than that. It's a short program, so translating it line by line to n7 only took me a couple of minutes. As with the Robowack translation, this code doesn't take advantage of the new stuff in n7. The original n5 source code is included.

Attached Files
.zip   bomb_sweeper.zip (Size: 3.14 KB / Downloads: 4)
Print this item

  Robowack - N7 version
Posted by: Marcus - 11-24-2023, 08:33 PM - Forum: NaaLaa 7 Code - Replies (3)

Here's an N7 version of the N5/N6 game Robowack.

[Image: robowack.jpg]

I'm using a version of the wolf3d library that has not been released yet, but it's included in the zip. The support for loading maps created with the RC Editor (n6) is not complete yet, so some parts of the code may look a bit weird.

The lines in the original source code (robowack_n6_version.txt) match those in the n7 version (robowack.n7). So if you look at line 503 in the n6 code and wonder how to do that in n7, you can simply look at line 503 in the n7 version Smile

I made some small changes to the game:
* The aspect of the window now matches that of the screen (monitor)
* Increased the field of view to 72 degrees
* Picking up a golden cross now gives you +5 health

I translated the n6 version line by line to n7, so the game does not take advantage of the "new stuff" in n7.

Attached Files
.zip   robowack.zip (Size: 13.46 MB / Downloads: 5)
Print this item

  Rock Blaster by me
Posted by: Marcus - 11-23-2023, 06:41 PM - Forum: NaaLaa 6 Code - No Replies

Here's Rock Blaster, source code included, by me. It was written in n5 though ...

[Image: rock_blaster.jpg]

The controls are weird. It's an asteroid style game that you control with the mouse. Hold down the right button and the ship will move towards the mouse cursor. Hold left mouse button to shoot.

Attached Files
.zip   rock_blaster.zip (Size: 7.34 MB / Downloads: 5)
Print this item

  Zombie Tumult by me
Posted by: Marcus - 11-23-2023, 06:04 PM - Forum: NaaLaa 6 Code - No Replies

Here's Zombie Tumult, with source code, by me.

[Image: zombie_tumult.jpg]

Attached Files
.zip   zombie_tumult.zip (Size: 1.23 MB / Downloads: 4)
Print this item

  Pat by JSM
Posted by: Marcus - 11-23-2023, 05:55 PM - Forum: NaaLaa 6 Code - No Replies

Here's Pat, with source code, by JSM.

[Image: pat.jpg]

Edit That dialog is lying though. You jump with arrow key up. Silly John.

Attached Files
.zip   pat.zip (Size: 1,017.54 KB / Downloads: 4)
Print this item

  Space Pooper by JSM
Posted by: Marcus - 11-23-2023, 05:33 PM - Forum: NaaLaa 6 Code - No Replies

Here's the N6 game Space Pooper, with source code, by JSM.

[Image: space_pooper.jpg]

Attached Files
.zip   space_pooper.zip (Size: 1.38 MB / Downloads: 4)
Print this item

  Old Stuff
Posted by: johnno56 - 11-23-2023, 07:32 AM - Forum: NaaLaa 6 Questions - Replies (6)

I just found the Youtube Naalaa channel....  https://www.youtube.com/channel/UCRwL0Jj...X0w/videos

Am I correct in assuming that "all" of those programs are gone? No chance that at least a few may have been tucked away on some forgotten drive somewhere? There are such a lot of cool games on that channel... It would be a shame if they were all lost... *sigh*  

I will look through my old drives, just in case, but I cannot be sure that I have any of them... I think I may have the 'example' programs for N5 and N6 but that may be all... I will still look none the less...


Print this item

  Temporary place for forum accident again
Posted by: luwal - 11-19-2023, 05:32 PM - Forum: Suggestions - Replies (2)

I am so pleased because the offical forum is okay again. Good job.

I have a good idea: one more forum or messageboard for NaaLaa! If forum accidents occur again at this official forum, NaaLaa users can still discuss technical topics about NaaLaa at the second forum or messageboard. In addition,  Marcus can also tell the users that an accident has happened at this NaaLaa official forum. Several BASIC languages have messageboards on Itch: Cerberus X,  BBC BASIC, Blitz3D and RCBasic. You can find their webpages on this page: https://itch.io/jam/jam-for-all-basic-dialects-5

Print this item