So much enthusiasm out there it’s infectious! I’ll be entering in a team, LasagneGames, as programming monkey and so I declare my code base for the comp as requested by the rules.
Frame work:
Javascript + canvas get the code
The folder represents the beginnings of a game engine, which is a bit unfinished. You can see an example of it in action here. Use WASD or arrow keys to move around.
If you can’t be bothered, here’s a video:
Features:
– asset loading (put all assets in the files.js including images and sound and it’ll be loaded by the asset manager)
– sound support.
– default input setup: WASD and arrow keys for player movement (also code for mouse and touch see utils.js).
– default sprite animation.
– smooth player centred camera (lerping). Read a blog post on the code here.
– .tmx map loading and parsing. Or you can add your own tilemap (just pass in a tile map to the Tilemap() object in engine/tilemap.js).
– AppEngine boiler-plate code for hosting your game on Google AppEngine (for quick deployment).
Notes:
– You’ll need to run the engine from your local host in order to view the example game as it needs to load the JSON files.
If you have AppEngine installed then you can run
python dev_appserver.py Lazyeels-GameEngineLD/
Then to view the game navigate to:
http://localhost:8000
Otherwise, just replace the example in game_class.js with your own game code or assign variable names to the JSON data and import as a .js file for development.
Due to a lack of time I haven’t provided a tutorial at the moment, but there’s plenty of code that you could just strip out for your own purposes.
Much of the code has been derived/based on/borrowed/stolen from various books on HTML and Canvas development including Foundation HTML5 Animation with JavaScript which is really really awesome!!
Good luck everyone with the Jam! Look forward to seeing your works of art!