Release Here is a PND for LOAD81


ibisum

Well-Known Member
Joined
May 6, 2009
Messages
1,134
I mentioned this yesterday, but it got lost a little:


http://boards.openpa...nment-codakido/


MODS: Maybe you can delete that old thread for me? The project got a namechange in the meantime .. ;)


LOAD81 is a very cute little environment for writing and running LUA scripts with some graphics capabilities - with an interface that should remind you of some old machine or so..


https://github.com/antirez/load81


Being discussed on HN: http://news.ycombina...item?id=3666076


Anyway here is the PND file I made for it today:


http://w1xer.at/LOAD81.pnd


Please test it folks, and lets see some nice little scripts!


EDIT: screenshots!


This code:


load81_A.png



Run results:


load81_B.png
 
Last edited by a moderator:
That looks pretty good. I don't know lua, but I have been meaning too. I'll have to check this out later
 
Great that you'll check it out - I've become a huge fan of Lua recently, since discovering (and using) the MOAI framework for cross-platform development .. I'd love it if we could get more Lua-oriented stuff happening on Pandora.


Speaking of MOAI, the Linux target for the framework is currently broken, but is due to be fixed soon - when this happens, I imagine we can easily get MOAI running on Pandora soon enough. (http://getmoai.com/)


Anyway pmprog, let me know if you do anything interesting with LOAD81!
 
Will do.


One thing I've just noticed that looks a little weird - in the "fill" command, RGB are 0-255, but alpha seems to be floating point. Am I reading that right? Seems a little bizarre to mix up the parameters
 
I've written a little fire effect demo, but am currently unable to test it as my Pandora won't boot up (I must have left it in low power mode instead of turning it off last time, at least I hope that's the case)


Once I get home, I'll recharge my Pandora and give it a whirl, and post it


Edit: I saw somebody request sound synthesis, I second that! Maybe include something like reSID with a simplified API ;)
 
Last edited by a moderator:
Here's the fire demo. Performance is quite bad on the Pandora (I was running at 800MHz), I ended up removing the life proximity code to try and speed things up a bit.


A couple of other points I'll note for sake of completion

  • Can't use Pandora buttons to select/load scripts
  • Pandora buttons won't page up/down in the editor - instead write "?" characters
  • The editor is pretty unresponsive. Tap down a few times, and you're waiting a good few seconds for it to catch up. I found myself closing LOAD81 to jump into gedit to make changes and then go back in and reload the script.
  • Y is bottom up! I guess this kind of makes sense for new programmers, but it threw me off when my flames started at the top


All in all, it's not bad, but it is pretty slow.
 

Attachments

  • flametest1.lua.txt
    1.7 KB · Views: 329
Last edited by a moderator:
Cool flame demo! You're right - we've got to fix LOAD81 for Pandora controls soon.


I'm currently waiting for antirez to merge my pull request that adds Open Pandora build-support, and then I'll dig in and find and fix these bugs for us Pandora users. I want to wait until he does the merge so that I can easily keep up with his progress without getting too divergent .. he's been adding features every day for the last 3 days. Check the github for load81 to find some new sample programs - an asteroid clone, a helicopter-cave game, and so on .. neat stuff.


EDIT: just wanted to say - you should push the flamedemo to antirez, it really rocks! :)


https://github.com/antirez/load81


Also, performance is being addressed - turns out there is a bug that makes SDL event processing not quite as performant as it should be. I guess this will be fixed soon - I'll keep making updates to the PND as this happens, coz actually LOAD81 is very fun, and I can imagine it being useful for a lot of new Pandora users who want to get into programming...
 
Last edited by a moderator:
Hi! @torpor! Thanks for making the Pandora Community aware of Load81.


@pmprog hey your flame demo is great, thank you, I would love to add it into the /examples directly, please could you give me the permission? Thank you.


In the weekend I'll work on Load81 more and I'll try to address performance issues at my best. Part of the problem is that I developed it into a macbook air i7 that is really fast and is hard to notice what is slow, so I'm going to use a profiler to optimize it.


Cheers,


Salvatore
 
p.s. the editor should be faster in the latest commit, and the runtime engine as well when there are many events like mouse moving and so forth.
 
@pmprog hey your flame demo is great, thank you, I would love to add it into the /examples directly, please could you give me the permission? Thank you.
Sure, go for it.


It looks better the more you increase MaxFlames and decrease FlameSize, but obviously slows the whole thing down. Same goes for the proximity function.


I'll probably look to do a few more "demo fx" scripts when I get chance
 
Last edited by a moderator:
I think the Flame demo really highlights the performance issue - I pumped up MaxFlames to 80000 (!) on my MBP and didn't notice much performance degradation, but of course on the Pandora it brought things to a crawl. Anyway, I just saw that there has been a patch submitted to fix all this by using SDL_gfx and its frame-rate limiting features, so I think this problem will be resolved shortly.
 
If it's using SDL_gfx, do you think we could get some form of polygon support?
 
Oh, one other thing I noticed - no "tab" support. If it gets added, please allow it to be configured. I have my tab sizing set to 2, because 4 is huge IMO.
 
Right now the priority is to get performance sorted out - I believe we are running into some float hw/sw issues .. then I'll work on the control differences for the Pandora build.
 
No worries, thought I'd just throw it out there, but yeah, please focus on performance, and I'll see if I can get some time to whip up a few other scripts
 
Okay pmprog, I've uploaded the latest version with severe performance fixes, and it includes the helicopter demo, as well as your flame demo now .. I think you'll be quite happy at the new performance.. ;)


Same location (for now) at: http://w1xer.at/LOAD81.pnd
 
When I run the new one from the MiniMenu, it draws windowed, and I can't see my fire effective because it's off the bottom of the screen... Can you fix it to be back fullscreen please? (The script selection is fullscreen, but the editor/player aren't)


The editor did feel a lot better, thank you!
 
Back
Top