wraggster
March 29th, 2007, 21:20
New from daaa57150 :
Hi,
I worked hard on a game in Lua (Mega A**hole Portable) and now I'm starting a new one also in Lua. As I saw how easy it was for me to start again using parts of the code I already did, I decided it would be useful to distribute it as independant libraries. So here is the first, for inputs. With a few easy function calls this allows to see if a button is pressed, since how long, if it's released, if it's pressed since long, if it is repeating (like keyboards)... Timings are of course customizable.
It's really easy to use you basically just need to add the file to your project, execute it, call the update function every loop, and do your stuff:
I made a complete example, run index.lua in the zip file to see it, and read the readme.txt, I explained every function.
This should work in the luaplayer 0.16 (that's what Mega A**hole Portable used) although I haven't tested this exact version (I just polished it, made it readable etc), as I lent my PSP.
But this works perfectly with luaplayer windows (0.20), as it did before.
If you test/use this, tell me if you like it or not, find it useful or think it's totally crap every comment you have will be welcomed (if it's no flaming/trolling of course).
Next to come, maybe, I just leave ideas there: a mod to grimfate's animLib (with image buffering, works good but need my PSP to test), a log in file library, I also have useful functions to deal with .properties files (see http://en.wikipedia.org/wiki/.properties) and many other utility functions.
Maybe people are interested in this?
Download and Give Feedback Via Comments
via daaa57150 (http://forums.qj.net/f-psp-development-forum-11/t-release-lua-inputlib-102015.html)
Hi,
I worked hard on a game in Lua (Mega A**hole Portable) and now I'm starting a new one also in Lua. As I saw how easy it was for me to start again using parts of the code I already did, I decided it would be useful to distribute it as independant libraries. So here is the first, for inputs. With a few easy function calls this allows to see if a button is pressed, since how long, if it's released, if it's pressed since long, if it is repeating (like keyboards)... Timings are of course customizable.
It's really easy to use you basically just need to add the file to your project, execute it, call the update function every loop, and do your stuff:
I made a complete example, run index.lua in the zip file to see it, and read the readme.txt, I explained every function.
This should work in the luaplayer 0.16 (that's what Mega A**hole Portable used) although I haven't tested this exact version (I just polished it, made it readable etc), as I lent my PSP.
But this works perfectly with luaplayer windows (0.20), as it did before.
If you test/use this, tell me if you like it or not, find it useful or think it's totally crap every comment you have will be welcomed (if it's no flaming/trolling of course).
Next to come, maybe, I just leave ideas there: a mod to grimfate's animLib (with image buffering, works good but need my PSP to test), a log in file library, I also have useful functions to deal with .properties files (see http://en.wikipedia.org/wiki/.properties) and many other utility functions.
Maybe people are interested in this?
Download and Give Feedback Via Comments
via daaa57150 (http://forums.qj.net/f-psp-development-forum-11/t-release-lua-inputlib-102015.html)