Omnimaga
Omnimaga => Completed => Our Projects => Trapped for the TI-Nspire and TI-89 => Topic started by: apcalc on April 14, 2011, 10:33:23 pm
-
In order to become acquainted with the Lua language for the Nspire, I have decided to port Block Dude to Lua! This is in extremely early stages, and, at this point, my knowledge of Lua is still quite low. Nevertheless, some basic features are currently working:
(http://i974.photobucket.com/albums/ae226/apcalc/NSPIREVIDEO0014.gif)
Hopefully, this will progress quickly! :)
-
Nice work! It is great that this calculator game classic is being ported to the Nspire. :)
I wish you good programming!
-
Good :)
-
i'm glad to see that some good is already coming of 3.0. lua looks very promising, even if it is more limited than asm.
-
Nice work! It is great that this calculator game classic is being ported to the Nspire. :)
I wish you good programming!
There already exist blockdude for the nspire, made by Apcalc. Ofcourse it might not work amore with all those updates.
Apcalc, that's really nice.
-
In order to become acquainted with the Lua language for the Nspire, I have decided to port Block Dude to Lua! This is in extremely early stages, and, at this point, my knowledge of Lua is still quite low. Nevertheless, some basic features are currently working:
(http://i974.photobucket.com/albums/ae226/apcalc/NSPIREVIDEO0014.gif)
Hopefully, this will progress quickly! :)
That is looking good! Nice job :) Awaiting further development :D
-
Really nice :)
Maybe we'll find some more api functions to program games more easily tho :P
-
I'll start writing a port of one of my TI-BASIC games I made later.
This sounds like it will be fun
I can't wait for a release of this
-
hey
scout apcalc, do you want my help porting block dude?
EDIT:thank you for the correction stefan ;)
-
hey scout, do you want my help porting block dude?
I think you mean Apcalc. ;)
-
hey scout apcalc, do you want my help porting block dude?
EDIT:thank you for the correction stefan ;)
I thank you for your offer, but since this is being heavily based on my previous Block Dude in C, all I really need to do is change the syntax around. In fact, I am really just about done with this! :)
-
When can we expect a release date?
-
this is being heavily based on my previous Block Dude in C
So, this is a TI-Nspire Lua port of a TI-Nspire C game which was a port of a TI-83+ game which was a port of a DOS game? :p
-
Lol Goplat. :P
I didn't know the 83+ game was a port of a DOS game, though. I was sure it was the original. O.O
ANyway I think this is mostly to show what the Lua language can do so far. Looks nice Apcalc. Do you think you can add actual textures or is that beyond Lua capabilities on the Nspire?
-
I didn't know the 83+ game was a port of a DOS game, though. I was sure it was the original. O.O
It was based on "Block-man 1" by Soleau Software (http://www.soleau.com/dosgame.html). Levels 1-10 of Block Dude are pretty much identical to levels A-J of Block-man (levels 11+ are new).
-
I didn't know the 83+ game was a port of a DOS game, though. I was sure it was the original. O.O
It was based on "Block-man 1" by Soleau Software (http://www.soleau.com/dosgame.html). Levels 1-10 of Block Dude are pretty much identical to levels A-J of Block-man (levels 11+ are new).
I didn't know it wasn't an original too, so we can say apcalc's games aren't ports of Block Dude but of Block-Man 1 :P
-
I didn't know the 83+ game was a port of a DOS game, though. I was sure it was the original. O.O
It was based on "Block-man 1" by Soleau Software (http://www.soleau.com/dosgame.html). Levels 1-10 of Block Dude are pretty much identical to levels A-J of Block-man (levels 11+ are new).
Very interesting, Goplat!
I was just thinking, in order to keep things original/different, maybe I will include all of the "Block Man" levels in the Lua version, and keep the "Block Dude" levels in the C version! :)
-
Support for custom levels, maybe?
-
Support for custom levels, maybe?
That would be good but then we'd need file parsing support in LUA. has anyone figured out how to do that on the Nspire yet?
-
Hum... I wonder if its possible to save the level data to like 1.2 - 1.whatever
-
Hum... I wonder if its possible to save the level data to like 1.2 - 1.whatever
That would be possible, but I think I would then have to include the game code on each page also...
Space wise, it would probably be better to keep them on 1 page
-
Hum... I wonder if its possible to save the level data to like 1.2 - 1.whatever
You can store to variables of the current problem with var.store(name, value) (note: it seems this only works if the variable already exists) and recall them with var.recall(name) (returns nil if the variable doesn't exist).
-
We could possibly save maps as strings...
Does Lua have a good string parser?
-
Hum... I wonder if its possible to save the level data to like 1.2 - 1.whatever
You can store to variables of the current problem with var.store(name, value) (note: it seems this only works if the variable already exists) and recall them with var.recall(name) (returns nil if the variable doesn't exist).
Well, for me var.store() perfectly works, even if the variable wasn't there before.
-
Wow nice! Now we need to get the TI Lua community rolling :)
-
@apcalc: Will this be open source? I'd really like it so I can learn how to use LUA in the NSpire.
-
Due to the way third-party Lua TNS files are currently generated, they are open source :)
Just decompress the TNS with pretty much any ZIP-capable program or library.
-
Due to the way third-party Lua TNS files are currently generated, they are open source :)
Just decompress the TNS with pretty much any ZIP-capable program or library.
That's not being open source, but nice to know we can have the source.
-
Yep, this will be open source! :)
-
that's good to know :)
-
COLORS!!!! (Thanks to Adriweb for the "dude" sprite! :))
(http://img.removedfromgame.com/imgs/bd_colors.png)
EDIT: Also, here is a beta release in case anyone wants to play with it/look at the source (the color pics don't look all that great in B&W; this will eventually be fixed)
Press Enter to reset the level (or play again after you won)
-
haha you're welcome :P
Great code, great game :)
Congratulations !
-
New screenshots! All that is left to do is add transitioning of levels! :D
(http://img.removedfromgame.com/imgs/NSPIREVIDEO0016.gif)
(http://img.removedfromgame.com/imgs/bd_colors_2.png)
-
Nice work!
-
Wow this is great. Do you have Level Keys set up yet?
-
Wow this is great. Do you have Level Keys set up yet?
I don't think there will be any need for level keycodes in this. Closing/Reopening the document does not change the position in the game, thus it will be "saved" at your respective spot. You will be able to press "Enter" to restart a level, or "A" to go back to level 1. :)
-
Holy, I loved the colored version. Who would have thought it could be so easy
-
Is there any way to go back to specific levels?
and I thought they do restart. 15 puzzle does
-
Is there any way to go back to specific levels?
and I thought they do restart. 15 puzzle does
15 puzzle restarts every time because it calls the reset function each time you open the document. Block Dude does the same, except it calls it for the current value of the variable "currlevel" which will not change.
-
Nice apcalc :)
-
go dude :p
we're awaiting the release of crisis in Lua for the nspire xD
-
Block Dude Lua
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=655
-
Uploaded to ticalc, Omni archives, and TI-Bank! :)
-
Uploaded to ticalc, Omni archives, and TI-Bank! :)
Nice job apcalc! This was coded very fast :D
-
ACtually, yep. I cant get this thing running on the computer, though :(
-
Looking great! How did you screenshot the colors?
-
with this: http://education.ti.com/html/nspireplayer/3.0.1/application/index.html (I think) Warning don't go to there, it takes forever to load x.x
-
with this: http://education.ti.com/html/nspireplayer/3.0.1/application/index.html (I think) Warning don't go to there, it takes forever to load x.x
I still will load it, I'm curious.
-
I have intermediate Lua knowledge. I might be able to help. I think. :|
-
Uploaded to ticalc, Omni archives, and TI-Bank! :)
So it's finished? Wow, nice!
-
is it just me or there is just the first level?
this is like a demo game released before the release of the game itself to leave the gamers expecting the great game comming :p
-
is it just me or there is just the first level?
this is like a demo game released before the release of the game itself to leave the gamers expecting the great game comming :p
The version on ticalc and in the omni archives (not the download in this thread) are the full versions. The ones on TI-Bank and the download in this thread seem to be the Level 1 demo I posted yesterday.
-
Does the new LUA version have the same graphics as the original Ndless one? I liked the way the blocks (the moveable ones) looked with the gradient.
-
Does the new LUA version have the same graphics as the original Ndless one? I liked the way the blocks (the moveable ones) looked with the gradient.
It was cool, but I thought it could have looked a bit nicer with a background and at least 2-frame animations in the character. Still good though, it's just sometimes odd when there's so many gradients.
-
I'M glad this is out. :D You should add a title screen, though. :)
-
is it just me or there is just the first level?
this is like a demo game released before the release of the game itself to leave the gamers expecting the great game comming :p
The version on ticalc and in the omni archives (not the download in this thread) are the full versions. The ones on TI-Bank and the download in this thread seem to be the Level 1 demo I posted yesterday.
ok, nice then! I'll try it tomorrow...
-
I just tried this, and it's very nice. ;) I'm definitely keeping it on my calc. ;)
-
Bleh, assuming you don't upgrade.
-
The news said there isn't a 3.0.2 for the CX yet...
btw, I'm happy to say the CX seems to be backwards compatible with he greyscale Nspires.
-
The news said there isn't a 3.0.2 for the CX yet...
Both CAS and non-CAS 3.0.2 OSes are available for the CX since the beginning.
The link to the CAS CX OS on TI web site is bad, but a fixed link is available in the TI-Bank news:
http://ti.bank.free.fr/index.php?mod=news&ac=commentaires&id=1108
-
I saw a kid (A Junior) at school today who said that he programmed this and a friend of his put it online... (He gave me details... such as using Notepad++ and some iPad Lua programming app to program it.)
What I want to know is: Is this kid crazy? Or is there some truth to this?
-
He must have been trying to brag about having made a game for a calculator even though it isn't true.
-
That doesn't make sense since this is released before that Ipad app was out.
-
Was it the exact same ? Even though it's "possible" it's unlikely.
However, programming [Nspire] Lua on iPad is possible;
-
He wasn't using the iPad nSpire app. He said it was a Lua IDE.
Anyway, I don't believe him, but I just wanted to make sure he's lying.
And yes, it was the exact same. (Maybe the kid lied to me and in fact is apcalc (highly unlikely), or maybe he's just lying)