Omnimaga

Omnimaga => News => Topic started by: apcalc on April 17, 2011, 01:34:07 pm

Title: Nspire Lua Games!
Post by: apcalc on April 17, 2011, 01:34:07 pm
Although Lua Programming on the Nspire was only discovered a few short days ago, a quick explosion of new games for the Nspire has come with its discovery!

First we have Goplat's original 15 puzzle game (http://ourl.ca/10347), the first Nspire Lua game:

(http://www.omnimaga.org/index.php?action=dlattach;topic=7750.0;attach=7309;image)

Secondly, apcalc has been working on porting Block Dude Nspire (http://ourl.ca/10395) to Lua:

(http://img.removedfromgame.com/imgs/NSPIREVIDEO0016.gif)

Finally, ExtendeD, author of Ndless, has been working on a Minesweeper clone, 9sweeper (http://ourl.ca/10457/199399):

(http://img.removedfromgame.com/imgs/NSPIREVIDEO0017.gif)

We hope to see more progress on these games, and new developments for the Nsprie in the near future! :D
Title: Re: Nspire Lua Games!
Post by: Stefan Bauwens on April 17, 2011, 01:43:02 pm
Nice! Nice. I hope more programs will come.
Title: Re: Nspire Lua Games!
Post by: Freyaday on April 17, 2011, 02:12:36 pm
Sweetness. It just occured to me that TI let us use Lua on OS 3.0 just so that we'd make games and create tools that would let us finally use the thing so as to entice people into getting Nspires.
Title: Re: Nspire Lua Games!
Post by: Jim Bauwens on April 17, 2011, 02:14:27 pm
This is very nice! I hope to port Block Breaker to my new nspire, but I have allot of school work, so I don't know when that will happen.
Title: Re: Nspire Lua Games!
Post by: Lionel Debroux on April 17, 2011, 02:24:38 pm
Quote
It just occured to me that TI let us use Lua on OS 3.0 just so that we'd make games and create tools that would let us finally use the thing so as to entice people into getting Nspires.
I doubt it, given that simultaneously, they removed backwards compatibility with the only documents that we third parties could easily create programatically, without using TI's software. http://ourl.ca/10462  ;)
Title: Re: Nspire Lua Games!
Post by: Freyaday on April 17, 2011, 02:31:00 pm
Well, maybe they're endorsing their own software at the same time?
Title: Re: Nspire Lua Games!
Post by: Hot_Dog on April 17, 2011, 02:32:01 pm
You know, this rocks.  And it's interesting, a language not much harder than Basic, but with fast, beautiful games!
Title: Re: Nspire Lua Games!
Post by: GB on April 17, 2011, 02:33:42 pm
Wow. This LUA community is really taking off!
Title: Re: Nspire Lua Games!
Post by: Levak on April 17, 2011, 03:03:43 pm
To complete the first post
I'm trying to port my Make3D prog on Lua
http://tibank.forumactif.com/t4072p180-wip-make3d-pour-nspire-cas#109672
Title: Re: Nspire Lua Games!
Post by: willrandship on April 17, 2011, 03:05:37 pm
Should be much faster :P
Title: Re: Nspire Lua Games!
Post by: Adriweb on April 17, 2011, 03:05:51 pm
Good luck :P
Title: Re: Nspire Lua Games!
Post by: willrandship on April 17, 2011, 03:13:29 pm
but wait, doesn't 3.0 have a realtime 3D grapher?
Title: Re: Nspire Lua Games!
Post by: Levak on April 17, 2011, 03:15:23 pm
but wait, doesn't 3.0 have a realtime 3D grapher?
Yes it does. But only for 3D functions. My goal is to make a mini-Blender, as I managed to do with the TI-BASIC (but with a really lack of performance while rendering), and help French HighSchool student to modelize their exercices in 3D and understand better the math concepts.
Title: Re: Nspire Lua Games!
Post by: willrandship on April 17, 2011, 03:16:24 pm
Ah. Sounds cool!
Title: Re: Nspire Lua Games!
Post by: ralphdspam on April 17, 2011, 04:02:29 pm
Great!  If we keep this up, I might actually get a CX. :)
Title: Re: Nspire Lua Games!
Post by: willrandship on April 17, 2011, 04:02:56 pm
You don't need a CX for this, fortunately, just get 3.0 for the reg. nspire.
Title: Re: Nspire Lua Games!
Post by: ralphdspam on April 17, 2011, 05:02:28 pm
Well, I don't have an Nspire at all.  As for the CX, the colors are just too enticing...
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 17, 2011, 05:26:48 pm
Lua supports grayscale? O.O
Title: Re: Nspire Lua Games!
Post by: Adriweb on April 17, 2011, 05:27:36 pm
Lua has setColorRGB(red, green, blue) Values range from 0 to 255.

;)
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 17, 2011, 05:31:15 pm
Wow awesome. A big step above TI-BASIC. I remember working on grayscale RPGs in BASIC on the 83+ before and we were forced to use assembly libraries using hooks to get grayscale and it still was kinda flickery.

Maybe I could eventually port my old Reuben Quest games to the Nspire if I ever got to learn Lua. ;D

(http://xlib.mtv-music-generator.com/reuben2b.gif)
Title: Re: Nspire Lua Games!
Post by: GB on April 17, 2011, 05:44:22 pm
I remember trying Reuben Quest once. It would definitely do much better on the TI-Nspire than it did on the 84.
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 17, 2011, 06:08:44 pm
Actually on the 84+ it could have done much better than it did back then, trust me. However, it was created 6 months too early...
Title: Re: Nspire Lua Games!
Post by: Levak on April 20, 2011, 03:30:46 pm
Hum ... I think there is only one thing missing in all those games : incompatibility with the nspire-player we use at TI-Bank.fr to preview before downloading the TNS.

This is why I made a common Button class relatively easy to implement without changing lots of lines.
http://levak.free.fr/ftp/nspire/Make3D/Buttons.lua

If you don't want the keypad to appear oncalc, just add a "plaform.window:width() > 320" or something.

=)
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 20, 2011, 03:33:12 pm
Yeah I remember loading some of them in the player on TI website and buttons wouldn't work. Only the mouse would. D:
Title: Re: Nspire Lua Games!
Post by: Munchor on April 20, 2011, 04:10:39 pm
apcalc, you should add Direct 4 to the topic :D
Title: Re: Nspire Lua Games!
Post by: willrandship on April 20, 2011, 05:13:59 pm
Also, DJ, there's a Lua command, that tests for a color display, returning (I think) 1 if it's a CX and 0 for non-CX. I'm betting the hardware is pretty similar too, besides the screen and RAM.
Title: Re: Nspire Lua Games!
Post by: Levak on April 20, 2011, 05:44:42 pm
I discovered missing events inside the OS itself (we just had to open a hex editor to see what was invisible)
http://hackspire.unsads.com/wiki/index.php/Lua_Programming
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 20, 2011, 11:32:06 pm
apcalc, you should add Direct 4 to the topic :D
Actually it's Connect 4, not direct 4.

And thanks for the info guys. I shall check that page if I ever learn Lua.
Title: Re: Nspire Lua Games!
Post by: Jimmy on April 24, 2011, 07:41:17 am
 ;D I hope to see the classical battle tank on Nspire!
3 cheers for LUA!!
Title: Re: Nspire Lua Games!
Post by: Munchor on April 24, 2011, 07:45:17 am
;D I hope to see the classical battle tank on Nspire!
3 cheers for LUA!!

Welcome to Omnimaga, I see that's your first post. Perhaps you'd like to create a topic here (http://www.omnimaga.org/index.php?board=10.0).
Title: Re: Nspire Lua Games!
Post by: DJ Omnimaga on April 24, 2011, 02:53:55 pm
Heya and welcome on the forums. :D