My base code
During LD 26 and 27 I spent too much time coding a simple game engine from scratch, wasting precious hours I could have used for the game logic. So over the warmup weekend I took the time to put together my base code that I intend to use for my LD 28 game. It is JavaScript code using HTML5/canvas and is basically an improved combination of the game engines I wrote during LD 26 and LD 27.
To adhere to the Compo rules and to give you all the possibility to use my code as well, I have pushed my base code to github: https://github.com/ZYXer-/ludum-dare-base-code
The base code consists of:
– a basic game loop
– mouse/keyboard input processing
– image preloading
I’ve also included some of my personal libraries for:
– loading and displaying PNG fonts
– particle systems
– pathfinding (using A*)
I’m distributing the code under the GPL2 license, so feel free to use any part of it for your own project. And please report any bugs 😉