NaaLaa
Loopz - Printable Version

+- NaaLaa (https://www.naalaa.com/forum)
+-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html)
+--- Forum: NaaLaa 7 Code (https://www.naalaa.com/forum/forum-4.html)
+--- Thread: Loopz (/thread-383.html)

Pages: 1 2


Loopz - Marcus - 04-11-2026

Saw this old video by Pat the NES Punk (comedy show) yesterday evening:



I had never heard of that game before and still haven't tried it. But now I'm working on an n7 version:



I'll post the game in a day or two when I'm done Smile


RE: Loopz - Marcus - 04-12-2026

Attached is the game, it's quite difficult Big Grin

[Image: loopz.jpg]


Edit

These are the instructions from the source code:

' loopz.n7
' --------
' * Rotate held piece with right mouse button or mouse wheel
' * Left click to place piece on a free spot on the board
' * If a loop is formed it is eliminated and you score points
' * If the timer runs out before you place a piece, the held piece explodes and you lose a life
' * When a held piece explodes, it destroys all formed pieces that it touches on the board

The last point is quite important. When you're about to lose a life, hold the piece over as many different pieces on the board as possible, because they will all be destroyed by the explosion and free up space!



Edit:  Fixed the bug that kevin found


RE: Loopz - kevin - 04-12-2026

Excellent - thanks Marcus. Just tried it once so far, and it certainly is not easy (as my score shows), which is good Smile.

I did get a runtime error at one stage, which read:

loopz.n7 :195: Runtime error :Index 7 not found(BC_MLOAD_R)

I've not been able to duplicate this error however. I think that the timer had just got to zero at the time.

Many thanks for sharing.


RE: Loopz - Marcus - 04-12-2026

(04-12-2026, 01:29 PM)kevin Wrote: Excellent - thanks Marcus. Just tried it once so far, and it certainly is not easy (as my score shows), which is good Smile.

I did get a runtime error at one stage, which read:

loopz.n7 :195: Runtime error :Index 7 not found(BC_MLOAD_R)

I've not been able to duplicate this error however. I think that the timer had just got to zero at the time.

Many thanks for sharing.

Ah thanks for reporting the error, an "index out of bounds". A quick look at the code tells me that it happens if part of the held piece is outside of the "board" when it explodes Smile


RE: Loopz - 1micha.elok - 04-13-2026

My first attempt is only 218 ... lol

[Image: bq7rS.jpg]


RE: Loopz - Marcus - 04-13-2026

It was fun to make a small game. If you have any suggestions for other NES games you want to see cloned in naalaa, please let me know!


RE: Loopz - kevin - 04-13-2026

(04-13-2026, 03:47 PM)Marcus Wrote: It was fun to make a small game. If you have any suggestions for other NES games you want to see cloned in naalaa, please let me know!

Can I put forward Klax as a suggestion to consider? I remember trying to code this ages ago, but it did not turn out well Sad

Klax on NES


RE: Loopz - 1micha.elok - 04-14-2026

I like
  • Klax  Big Grin
  • Marble Madness
  • RC Pro- Am

Thanks  Cool


RE: Loopz - Marcus - 04-14-2026

All good suggestions, thank you both!


RE: Loopz - Marcus - 04-14-2026

(04-13-2026, 05:37 PM)kevin Wrote:
(04-13-2026, 03:47 PM)Marcus Wrote: It was fun to make a small game. If you have any suggestions for other NES games you want to see cloned in naalaa, please let me know!

Can I put forward Klax as a suggestion to consider? I remember trying to code this ages ago, but it did not turn out well Sad

Klax on NES

I took a quick glance at the game. The logic seems fairly simple (reminds me a little of two games i made for amiga that are listed here: https://gamesdb.launchbox-app.com/publishers/games/19231-nc-gamez). Was it the 3d perspective that didn't work out when you tried?