Home

Awesome

generator-phaser-coffeescript-gulp

Yeoman generator

Getting Started

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

Installation

Install Yeoman and Gulp
npm i -g yo gulp
Install phaser-coffeescript-gulp generator
npm i -g generator-phaser-coffeescript-gulp
Initiate generator in a directory
mkdir my-game
cd $_
yo phaser-coffeescript-gulp

Built-in web server with live-reload support

Once the generator is initiated you are ready to run gulp command. Gulp will start a web server with live-reload support using Browser-Sync, compile and merge coffee files.

Gulp Demo

And you are ready to start developing awesome games right away!

Prefab Generator

To generate a prefab run yo phaser-coffeescript-gulp:prefab prefabname. You will see the prefab choices:

Prefab Demo

Then you can require your newly generated prefab in a state file.

State Generator

To generate a state run yo phaser-coffeescript-gulp:state statename.

State Demo

License

MIT