julien / generator-phaser

A yeoman generator for phaser games
MIT License
260 stars 32 forks source link
gamedev javascript phaser phaserjs yeoman

generator-phaser

A Yeoman generator to create HTML5 games with Phaser. This generator allows for the creation of Phaser games with best practices. The main generator (yo phaser) outputs a basic Phaser game. You can also generate new prefabs (yo phaser:prefab) or states (yo phaser:state) to add to your project.

You can view your game in the browser by running npm start from the project's root directory and the web page will refresh as you save your files.

When you are ready to publish, build your game with npm run build and view the output in the build/ folder. The build process minifies and compresses individual files into one file for faster network downloading, the source code is transpiled to ES5 compatible JavaScript using Babel.

INSTRUCTIONS

Notes

The game's main.js file will be updated with new states when you run the state generator. It adds in .js files found in the src/states/ directory.

CREDITS