melonJS Framework
You now have a level that could be used in a variety of game engines, but we use the melonJS framework for this HTML5 game. The framework code comes in a raw format that you will need to compile to have a minified version for use in your game. Download the latest version of the code from the melonJS website (http://www.melonjs.org/
). You can download the zip, or clone the github repository (https://github.com/obiot/melonJS
). I chose to download the zip file, which is just a tagged version of the source code.
Now we need to compile the source. There is a script that compiles the source, but you need to create a build
directory first (or edit the Makefile if you are comfortable), then run the make command in the melonJS source ...
Get Beginning Facebook Game Apps Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.