Join us on Discord!
You can help CodeWalrus stay online by donating here.

Ti Nspire Tunnel[nspire][lua]

Started by semiprocoder, February 09, 2016, 03:10:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

semiprocoder

So I know there already exists a tunnel for the nspire, but it is really flashy and annoying and the difficulty doesnt progress(at least not noticeably).
Thus I decided to create my own tunnel game for the nspire. It is made it blocks, with each block being 10 pixels rather than one.
The only real issue I have right now with my game is that the movement is by presses and it isnt smooth. If there is any way to make it so that holding down the key is registered and releasing the key is registered, that would make making movement smooth so much easier, but unfortunately, I do not see any way to do that.
Attached are screenshots and the source.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

Oh wow I remember the other Tunnel O.O, it was kinda cool but yeah the flashiness can be annoying for some people. :P Nice rendition, by the way :)

I don't think holding down keys detection is possible in Lua, though. THis is one annoying Lua limitation on the Nspire (even TI-82/83/84 BASIC has key repeat for arrow keypresses)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

Nice! I really like how it looks ;). I also remember Pixel escape.
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

semiprocoder

So I've essentially finished the game. It now includes a readme and saves your highscore(which I am not 100% sure works). These are really the only outward changes.
However, I also added error catching code, and the screenshot below shocases what that looks like(Note: the crash was induced by an extra line of code I added temporarily and now removed).
This error catching should work for all my future games(and walriidts if I feel like reuploading it).
The full file is also attached.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

#4
Nice idea about the error catching code. :D Also I'm glad to see the game finished. You should put a link in the first post and put it on ticalc.org, so it gets listed to the CW downloads section. :3=

Do you plan to add new stuff in the future? Some kind of graphics, such as making the road gray, the borders brown and the rest green with a gradient on the side would look cool I think.

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal