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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access