0.1.12 • Published 8 years ago

generator-phaser-alternative v0.1.12

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

generator-phaser-alternative

An alternative Phaser generator for Yeoman; done the way I like it.

Installation

Install yeoman globally as you normally would:

$ npm install -g yo

Next, install this generator:

$ npm install -g generator-phaser-alternative

Run the generator in any empty directory to scaffold your game! Dependencies will be automatically installed after scaffolding.

$ mkdir MyGame
$ cd MyGame
$ yo phaser-alternative

Sub-Generators

This generator includes sub-generators to help set up the boiler-plate for states and (coming soon) other classes.

When adding new states, the game.state.add() method call is automagically added to your main.js file. Neat!

To add a new state called 'menu' to your game:

$ yo phaser-alternative:state menu

Building and Running

This generator favors npm build scripts and browserify over other build tools such as gulp or grunt.

To start a dev server, watch the source files and live-reload on changes:

$ npm start

To test and lint:

$ npm run lint
$ npm run test

To build the project into the dist folder:

$ npm run build

Coming "soon" (planned features)

  • Sub-generators for States, Prefabs, etc.
  • A better method of including Phaser (it doesn't play nice with browserify at the moment)
  • The ability to select different Phaser releases (standard, no-lib, ninja physics)
0.1.12

8 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago