Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: ExtendeD on April 17, 2011, 10:23:27 am
-
Here is a simple Minesweeper in Lua. It's not very well-coded since I learnt Lua yesterday, and doesn't look so good since I am not good at game design, but it's a first shot that I may try to improve later. It's untested on real calculator, and not thoroughly tested.
It will at least give another example of Lua code for beginners. TI's event-driven API is nice and easy to use. Thank to all of those who contributed to bring Lua development to the TI-Nspire :)
Keys:
- R: restart
- Enter: dig
- F: set/unset flag/unknown
TODO:
- Make it compatible with the Touchpad mouse?
- Use colors for the CX
- Check if the game is won
- Display the keys
- Show when the game is over
- Use images
- Simplify code
-
Looking good ExtendeD, since I can't try it, I'd like an animated GIF of it :D
Great to see so many Lua games coming out already :D
-
Really nice ! :o
Congratulations on coding this as your second day of Lua :P
-
"9sweeper"... once again, you're making an excellent choice for the name of one of your programs ;)
-
Very nice ExtendeD! I will be sure to try this out! :D
-
I just wish there was some way to get Lua to work in 2.0...
-
I didn't comment yet because I didn't have time but this is really great. I tried it and the speed seems nice too. Good job. :)
You should put it in http://www.omnimaga.org/index.php?action=downloads;cat=45 with Block Dude and ticalc.org, though. Ticalc actually added a Lua section :D
-
I didn't comment yet because I didn't have time but this is really great. I tried it and the speed seems nice too. Good job. :)
You should put it in http://www.omnimaga.org/index.php?action=downloads;cat=45 with Block Dude and ticalc.org, though. Ticalc actually added a Lua section :D
They also made a news thread (after a long time without one). Hope this will make more people start coding Lua.
-
Yeah true I am glad they posted a news about Lua. I think it helped that people upload Lua converters there. That said the news was not very late, because we announced Lua very recently anyway.
-
Yeah true I am glad they posted a news about Lua. I think it helped that people upload Lua converters there. That said the news was not very late, because we announced Lua very recently anyway.
Lua converters are the new quadratic solvers? Everybody has made one :P
-
Posted by: Scout
Lua converters are the new quadratic solvers? Everybody has made one
check xD
-
Posted by: Scout
Lua converters are the new quadratic solvers? Everybody has made one
check xD
I haven't made one yet, I was thinking of an online one made in Python. I'll try it later.
-
Is there any way to put a timer and a game won message(at least the smile that tells everithing in minesweeper)?
-
Is there any way to put a timer and a game won message(at least the smile that tells everithing in minesweeper)?
I agree that that'd be cool.
Also, @renatose: You should visit more sections of the forum, not just Lua ones and try to get 20 messages to talk to us on OmnomIRC, or join us on IRC EFNet, channel #omnimaga.
But before, you should make a topic here (http://www.omnimaga.org/index.php?board=10.0)!
-
Also, @renatose: You should visit more sections of the forum, not just Lua ones and try to get 20 messages to talk to us on OmnomIRC, or join us on IRC EFNet, channel #omnimaga.
But before, you should make a topic here (http://www.omnimaga.org/index.php?board=10.0)!
Thank you scout, I'm working on it ;)
-
renatose: sure, I'll see if I have time for this. But Ndless 3.0 is of course the main priority.
-
of course! I did the upgrade to the 3.0 (without the boot2) and never downgraded yet, but I'm missing nDoom ^^