Uh, there's a demo in this. If you have any questions or feature requests, leave a comment.
Thanks to Kaiochao for minor improvements.
Updated 8/23/2016.
-Added Gamepad Support.
ID:1975600
Oct 31 2015, 10:00 pm
|
|
In response to FKI
|
|
FKI wrote:
You probably want to spawn() that world loop so world/New() can finish. Or just put ..() or build the world before the for loop. |
It's a mistake that won't ruin projects by including the library since it's demo code.
However, because it's demo code that's meant to show people how to do something, it would be best to just fix the mistake. If someone were to copy your way of starting a game loop like this: // code to be included You don't want people using your code to have to worry about a situation like that. You don't have to force people to tiptoe around your library's shortcomings in any way. Just do this: world/New() Or this: world Or this: world |
In response to Kaiochao
|
|
Alright, my stubbornness knows bounds. I updated it to be compatible, and now when using it as a library the demo file isn't included.
|
On a side note I usually like to use sleep(world.tick_lag) for the loops but that's just a personal preference.