Monkey World
HTML5 canvas game written in JavaScript, using KineticJS.
Documentation
Build
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
ant
orant uncompiled
in 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 compile
in the root folder of the project. The result will be in the folderbuild
.
Run
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.
Unit Tests
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
.