0.1.1 • Published 10 years ago
generator-phaser-template v0.1.1
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-templateThen install Grunt and Bower globally.
npm install -g grunt-cli
npm install -g bowerUsage
Generate your new project:
yo phaser-templateRun a local development server (livereload enabled) with this command:
gruntPackage your game (i.e. minify css, html and js) with:
grunt buildCompress your game in a zip file, ready for CocoonJS usage, with:
grunt zipTo add new Phaser states (optional, generator creates basic initial states):
yo phaser:stateLicense
MIT © Andres Alvarez