Calculator Community > Lua

[Nspire] Pokémon Fuchsia -- An experiment

(1/6) > >>

hoffa:
Hey,

I yesterday started experimenting with Lua to see how well it handled graphics and other game-related stuff. I wrote on the other thread about my results. Well it seems like the calculator is not fast enough to handle games where fluidity in the gameplay is an important factor (i.e. many platformers). It's not that the calculator itself is slow, it's just the way Lua has been implemented on it that makes it inefficient for such games (Edit: invalidate() is able to update the screen partially, so all that written before might be wrong). I then decided playing around with Pokémon-like games, where speed is not the most important thing. And that's basically where I'm at, at the moment. For now with what I have done it seems to be working well. This also helps me to test Lua in a "real-life situation", with title screens and everything that a game usually has, in order to see what the difficulty of making such a game is and whatnot.

Everybody loves screenshots, so I give you screenshots:



It's not much (at least Ash can move and the basic tile "engine" is done), and I'm only in the experimenting/testing phase right now. I still have to see how to actually save an eventual game (it might be possible to do something with var.store() and its friends), if it is even possible, and many other things to see if it's even worth trying to make the game.

Spoiler For Spoiler: It's Fuchsia because I didn't even know what kind of color fuchsia was, and also because it's such a manly color. (I don't even know how you pronounce "fuchsia")
That's it for now. :)

PS: Also notice the small black on the second screenshot at the bottom. By "removing" 4 pixels (which is the same width as the upper bar, so it's symmetrical and doesn't look ugly) I have a resolution of 318*208, which is a lot better (especially in a tile-based game) than normally.

Spyro543:
Looks awesome! I'll be getting an Nspire, hopefully. I hope you will continue, looks awesone!

Ashbad:
that looks great Hoffa!  I heard that graphics rendering for Lua is a slow stack-based method (For NLua, at least) -- what is the framerate right now?

DJ Omnimaga:
That looks nice. If I was you however, I would start with a small Pokémon demo with only like 20 Pokémons maybe to not start too big. That's unless you have a lot of project and programming experience, though. I guess maybe there will be no smooth scrolling, right?

Fortunately Lua speed is better than nothing at least. It seems we can do pretty awesome stuff in it and the slow speed might encourage people to try finding new optimizing tricks in the process.

hoffa:

--- Quote from: Ashbad on May 31, 2011, 01:40:14 pm ---that looks great Hoffa!  I heard that graphics rendering for Lua is a slow stack-based method (For NLua, at least) -- what is the framerate right now?

--- End quote ---
I can't really say as there is no real animation. It's also event-based so unless I make some sort of benchmarking thing with continuous animation it'll be hard to give an accurate framerate. But I'd say about 10-15 FPS, but it can be anything really.

Navigation

[0] Message Index

[#] Next page

Go to full version