Its a ready and simple project template for your next Phaser game.
- Gruntfile.js for all your game scripts to one file, also with
watch
, its automaticly re-compile. - Package.json for initialize your npm package and set dependencies.
- States
- Objects
- Libraries, like Phaser.
Firstly, you should download this project template. Secondly, download latest version of Phaser. Thirdly, installing NodeJS. Finally, install Grunt.
I think, you can download this project template easly, like Phaser. Because of this, I skip that sections.
Firstly, install NodeJS after that use that command from terminal.
npm install -g grunt-cli
Please, navigate into the template directory's root and use that command for installing/updating dependencies.
npm install
This will read package.json
and install dependencies.
Simply run command:
grunt
This will launch your browser automaticly.
Grunt will work in background. When you change your script files, it will re-compile scripts every time.
- Library files (Like Phaser)
- Object files (src/game/objects/**/*.js)
- State files (src/game/states/**/*.js)
- Main files (src/game/*.js)
Less
orSass
suppport for css.Jade
support.Coffeescript
support.Uglify
support for production.Copy
support for copy assets files.Cssmin
support to minified css for production.