Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Rhombicuboctahedron on December 06, 2012, 05:18:07 pm

Title: Random Lua games I have
Post by: Rhombicuboctahedron on December 06, 2012, 05:18:07 pm
Hi
So I was looking through my calc files for something, and I came across all these Nspire Lua games I made several months ago.
They are not really great, and don’t have that much complex code to it, but I thought some of you might like to spend a minute and play it, so here you go.

Dodger
Dodge asteroids as you also try to not go too high and not too hit the ground. When you reach 1000 points you lose your stage 1 rockets and the gravity increases. When you reach 2000 you lose your stage 2 rockets and the gravity increases.
(http://i.imgur.com/OzKgx.png)

Paint
Paint in any color in three sizes. Of course, you can make better pictures than this.
(http://i.imgur.com/zoDIR.jpg)

Trondrive
Drive a tron lightbike, and try to get your light ribbon to hit the other bikes. Not really fun, but it is interesting that it was designed to that you hold the calc like a psp and use the 5 and 2 keys to play.
(http://i.imgur.com/pJSyF.png)

These were the only ones that I thought were notable, so here you go.
Title: Re: Random Lua games I have
Post by: Adriweb on December 07, 2012, 02:07:27 am
That's some pretty cool scripts, very nice:)
Title: Re: Random Lua games I have
Post by: ElementCoder on December 07, 2012, 02:33:43 am
I like the paint thingy :3 I really need to go and learn some more Lua so I can continue my projects :P Shouldn't this (also) be in the Lua section (too)?
Title: Re: Random Lua games I have
Post by: Hayleia on December 07, 2012, 09:37:38 am
Great work :D

For painting, there is also NSPaint (http://ourl.ca/16028/299313), which is very complete. I feel like you didn't know about this one before starting your paint program :P
Title: Re: Random Lua games I have
Post by: Chockosta on December 07, 2012, 11:44:51 am
For painting, there is also NSPaint (http://ourl.ca/16028/299313), which is very complete. I feel like you didn't know about this one before starting your paint program :P
Nspaint is more an advanced sprite editor for Lua programmers.
This one is better for doodling... By the way, you should add the possibility to save.

Anyway, nice programs !
But it seems that I can't play dodger... It only displays an orange "Game over"
Title: Re: Random Lua games I have
Post by: Rhombicuboctahedron on December 07, 2012, 01:51:11 pm
Great work :D

For painting, there is also NSPaint (http://ourl.ca/16028/299313), which is very complete. I feel like you didn't know about this one before starting your paint program :P
These games were made several months before I learned of omnimaga and a few months before I learned of ticalc.
But it seems that I can't play dodger... It only displays an orange "Game over"
For dodger, because of some incorrect code, you have to press enter twice to start and restart.
Title: Re: Random Lua games I have
Post by: someone on December 07, 2012, 01:56:10 pm
For painting, there is also NSPaint (http://ourl.ca/16028/299313), which is very complete. I feel like you didn't know about this one before starting your paint program :P
Nspaint is more an advanced sprite editor for Lua programmers.
This one is better for doodling... By the way, you should add the possibility to save.

Anyway, nice programs !
But it seems that I can't play dodger... It only displays an orange "Game over"
Changing a validation seems to fix that issue:

Code: [Select]
function on.enterKey()
    if beginning~=0 then
        over=0
        beginning=0
    end

Before, it checked if beginning was == 1, but on function on.paint(gc) it changed that variable to 2, so the validation couldn't work afterwards...
Title: Re: Random Lua games I have
Post by: Rhombicuboctahedron on December 07, 2012, 04:32:28 pm
Thanks, but I haven’t touched the code for about 9 months. I probably won’t change anything, but thanks.
Title: Re: Random Lua games I have
Post by: Sorunome on December 08, 2012, 02:32:11 am
The programs look nice, great job :D