A simple asteroids game using Ash.js, a JavaScript port of Ash Framework
Just open ashteroids.html
from your browser. This will run the final (built & minified) version of the game.
If you modify or customize the code, you have to re-build the sources in order to see the effect. Or you can run the game in development version (see the topic below.
This project uses RequireJS (AMD) & Grunt for the building process. All JavaScript files, including the Ash Framework, will be concatenated into 1 file & minified using UglifyJS.
- Node.js
- Grunt's CLI installed globally using
npm install -g grunt-cli
npm install
from the project folder. This will automatically download & install the required modules
grunt
will run jshint & build the game files. The results can be found at folderbuild
(both minified & non-minified version)
Open ashteroids.dev.html
and you will run the non build-and-minified version of the game.
Running the development version allows you to debug the source codes easily or see any changes immediately without having to build.
These are the list of grunt commands:
grunt connect
to start a local webserver (using port 9000 by default). From your browser, you can go tohttp://localhost:9000/ashteroids.dev.html
.grunt jshint
to jshint all JS filesgrunt requirejs:compile
to build the non-minified versiongrunt requirejs:minified
to build the minified version
MIT License