HTML5 canvas game written in JavaScript, using KineticJS.
There are two options to build the game for use in a web browser:
- Include all source files in the header of a HTML file. This can be done automatically and in the correct order by using a custom built ant task. For this project, run
antorant uncompiledin the root folder of the project. The result will be in the folderbuild_uncompiled. This is easiest and recommended for ordinary development. - It is possible, but not needed, to compile the project using Google Closure for Ant. Run
ant compilein the root folder of the project. The result will be in the folderbuild.
After building, the uncompiled version (build alternative 1) can be run by running build_uncompiled/index.html in a HTML5 compatible web browser. The compiled version (build alternative 2) is run by using build/index.html in the same way.
To run unit tests, build the project using ant make_test. This will create
test/index.html, which runs the unit tests. The tests are written in
test/monkeyworld-qunit.js.