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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 47
» Latest member: Shed_Grill
» Forum threads: 313
» Forum posts: 2,245

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 45 Guest(s)
Applebot, Bing

Latest Threads
I bought a PicoCalc
Forum: Everything else
Last Post: johnno56
Today, 12:39 AM
» Replies: 1
» Views: 16
Gorn vs Spock
Forum: Programming
Last Post: aurel
Yesterday, 05:58 PM
» Replies: 1
» Views: 281
Galaga7
Forum: NaaLaa 7 Code
Last Post: aurel
01-12-2026, 10:20 PM
» Replies: 3
» Views: 340
Connect 4
Forum: NaaLaa 7 Code
Last Post: Marcus
01-12-2026, 06:37 PM
» Replies: 7
» Views: 350
Any chance of writing a t...
Forum: Suggestions
Last Post: luwal
01-11-2026, 07:49 AM
» Replies: 7
» Views: 1,824
DeepCoin in micro(A)
Forum: Programming
Last Post: aurel
01-10-2026, 08:56 AM
» Replies: 16
» Views: 343
Tic-Tac-Toe
Forum: NaaLaa 7 Code
Last Post: johnno56
01-07-2026, 07:58 AM
» Replies: 4
» Views: 781
Jam for All Basic Dialect...
Forum: Programming
Last Post: luwal
01-06-2026, 11:40 PM
» Replies: 28
» Views: 1,304
Happy New Year
Forum: Everything else
Last Post: aurel
01-05-2026, 10:24 AM
» Replies: 5
» Views: 1,090
Compile an n7 file from t...
Forum: NaaLaa 7 Questions
Last Post: kevin
01-04-2026, 12:45 PM
» Replies: 2
» Views: 150

 
  [HELP] md2 with two models
Posted by: 1micha.elok - 09-08-2025, 09:47 AM - Forum: NaaLaa 7 Questions - Replies (3)

Hi Marcus,

I would like to put two models of md2 on the left (texture2) and and on the right (texture1), 

       
click the images to zoom in

so they should stand face to face and ready to fight (such as in Street Fighter). 

Question #1
What's wrong with this code ? only 1 texture model is drawn.

Code:
    'model 1: Translate and rotate.
    pos = 1.5 'on the right
    S3D_Translate(pos, 0.25, distance)
    S3D_RotateY(rad(rotY))
    S3D_Texture(texture)
    anim.Render(model)

    'model 2
    pos = -1 'on the left
    S3D_Translate(-1, 0.25, distance)
    S3D_RotateY(rad(rotY))
    S3D_Texture(texture2)
    anim.Render(model)
 
Question #2
What is the best way for collision detection between the 3D models ?

You may reply on the weekend, when you are not working. Don't worry, it's not urgent. Big Grin
Thank you



Attached Files
.n7   test.n7 (Size: 12.2 KB / Downloads: 3)
Print this item

  md2 loading test
Posted by: Marcus - 09-02-2025, 03:26 PM - Forum: NaaLaa 7 Code - Replies (3)

Here's a quick test of a function for loading md2 (quake 2 models) files.



Attached Files
.zip   md2_loader.zip (Size: 235.07 KB / Downloads: 10)
Print this item

  N7 version 25.08.30 released
Posted by: Marcus - 08-30-2025, 07:37 AM - Forum: Announcements - Replies (7)

2025-08-30

  • Added the command 'file seek' and the functions 'filetell' and 'fileseek' (examples/help/file_seek_tell.n7)
  • ngui: Fixed a bug that could cause a crash in the enginea editor. A widget now loses keyboard focus if you click anywhere outside it
  • s3d: 'S3D_Clear' and 'S3D_BeginMesh' now set the primitive color to white, an implicit call to 'S3D_Color(255, 255, 255)'
  • Added the games Darned Dungeon and Blocks 3D to examples/games

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

Print this item

  Linux or Android
Posted by: Marcus - 08-21-2025, 01:59 PM - Forum: Suggestions - Replies (22)

Would you rather see N7 running on Linux or Android?

Print this item

  Blocks n7 port
Posted by: Marcus - 08-16-2025, 08:08 AM - Forum: NaaLaa 7 Code - Replies (2)

I'm reposting the game from a thread under the n6 section (https://naalaa.com/forum/thread-304-post...ml#pid1935), since it's an n7 port.

[Image: blocks_3d.jpg]



Attached Files
.zip   blocks_n7.zip (Size: 80.21 KB / Downloads: 9)
Print this item

  Form a cohesive community as the GFA-BASIC community!
Posted by: luwal - 08-14-2025, 12:04 AM - Forum: Suggestions - Replies (14)

https://gamesgfabasic.itch.io/
https://gb32.itch.io/
https://larrybtoys.itch.io/
https://scalion.itch.io/


Marcus, 
Their community looks quite cohesiveTheir community is a group of users of GFA Basic who are strongly connected, share a sense of belonging, and actively interact with each other and GFA Basic. In addition, their community is characterized by strong relationships, shared goals, and a feeling of mutual support.

Will our user community be able to become such community?
Big Grin  Blush  Smile  Tongue  Wink  Cool 

Print this item

  Blocks
Posted by: johnno56 - 08-11-2025, 11:50 AM - Forum: NaaLaa 6 Code - Replies (8)

Here is a "blast from the past". The old N6? Arkanoid, Blocks. I have also included the executable (for those that do not have N6)

This was coded from a hard copy listing... Let me know if you find any 'random features'?

Enjoy.


.zip   blocks.zip (Size: 438.06 KB / Downloads: 6)

J

Print this item

  Sorting Algorithms
Posted by: johnno56 - 08-09-2025, 11:53 AM - Forum: Programming - Replies (2)

I have been tinkering with AI (mainly Copilot) to reproduce those fascinating visual sorting programs. The AI is not 100% accurate when it comes to Naalaa, but in most cases, the syntax is somewhat easy enough for me to convert.... I have managed to replicate 6 popular sorting algorithms... Bubble, Insertion, Selection, Merge, Heap, Cocktail and the infamous Bogo sort.

One interesting thing I found was, inserting a 'wait' value of zero seconds has an effect on the speed of the sort. For example: Bubble sorting 200 samples with a 'wait 0' in the sort loop, takes about 41 seconds... remove the wait statement and the time is reduced to almost 8 seconds... apart from the Bogo sort, all other algorithms performed similarly.

Two points to remember... These visual sorting algorithms are a little mind-numbing and are purely here as "see if I can" experiment... the second: Bogo sort, in my opinion, is one of the most useless sort routines on the planet... try not to go beyond 5 elements to sort... All of the other algorithms use 200 elements... Moo Ha Ha Ha Ha.


.zip   sorting.zip (Size: 5.74 KB / Downloads: 10)

Remove the 'wait' statements and record the timings... Curious to know the results....

ps: Try to stay awake... lol

Print this item

  Hey!
Posted by: johnno56 - 08-08-2025, 10:22 AM - Forum: Everything else - Replies (4)

Guess what I found during my latest youtube prowling....

   

https://www.youtube.com/watch?v=FaUX1jhC...rt_radio=1

I would be interested in how many "hits" it gets... But ultimately how many visits to Naalaa as a result...

A very nice piece of promotional advertising...! Well... it would have been... I think someone may have left out a link or two in the Youtube description... Doh!

Print this item

  Darned Dungeon
Posted by: Marcus - 08-01-2025, 11:11 AM - Forum: NaaLaa 7 Code - Replies (10)

A game about some sort of Australian boomerang throwing mate trapped in a weird dungeon will be released in a few days! So get ready for eight levels and a boss fight (ye, it's a short game)!

<video width="320" height="240" controls><source src="https://naalaa.com/tmp/darned_dungeon.mp4" type="video/mp4">Your browser does not support the video tag.</video>

Print this item