Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A yeoman generator for phaser games
branch: master
Failed to load latest commit information.
app fix #21
state Added state sub generator.
test removed junk
.gitignore edited index
AUTHORS Added state sub generator.
LICENSE Passed to generator
README.md Added state sub generator.
package.json Bump version

README.md

generator-phaser

A Yeoman generator to generate HTML5 games with phaser.

INSTRUCTIONS

  • Install Node.js

  • Install the required npm modules by issuing these commands:

    npm install -g yo generator-phaser

    You can optionally install Gulp globally npm install -g gulp but you don't have to.

  • Create a new directory for your game:

    • Unix/OSX : mkdir ~/Desktop/mygame && cd $_
    • Windows : mkdir %USERPROFILE%\Desktop\mygame && cd %USERPROFILE%\Desktop\mygame
  • Invoke the generator:

    yo phaser

  • Add new Phaser state (optional, generator creates basic initial states):

    yo phaser:state

    You will be asked for a new state name.

  • Run a local development server (livereload enabled) with this command:

    npm start

    If you have Gulp installed globally you can also use: gulp

  • Package your game (i.e. minify css, html and js) with:

    npm run build

    If you have Gulp installed globally you can also use: gulp build

CREDITS

Something went wrong with that request. Please try again.