generator-phaser-template v0.1.1
Generate HTML5 templates for Phaser.
Installation
First, install Yeoman and generator-phaser-template using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-phaser-template
Then install Grunt and Bower globally.
npm install -g grunt-cli
npm install -g bower
Usage
Generate your new project:
yo phaser-template
Run a local development server (livereload enabled) with this command:
grunt
Package your game (i.e. minify css, html and js) with:
grunt build
Compress your game in a zip file, ready for CocoonJS usage, with:
grunt zip
To add new Phaser states (optional, generator creates basic initial states):
yo phaser:state
License
MIT © Andres Alvarez