This package has been deprecated
Please, do not install this package! It is outdated, obsolete and unmaintained. Period. Try `generator-phaser-plus` instead.
HIGHLY EXPERIMENTAL! A Slush generator for Phaser web game projects, packed with lots of good features.
Every project created with this generator includes the following tool-set:
Gulp task manager, to handle development and distribution tasks, with alternative npm scripts provided.
BrowserSync development server for cross-device testing.
Browserify support for easier management of components and dependency tracking.
ESLint for code quality check.
The generated sample project is based on my
using this generator, you always get a working project similar to that. In
fact, that project began before
slush-phaser-plus, and it is regularly
updated with improvements and bug fixes. If you have questions regarding the
sample project or want to contribute with suggestions or bug fixes, feel free
to ask there.
Firstly, you need a development environment compatible with
installed and configured in your system to use with this generator. After that,
npm to install
slush, if you didn't already),
issuing the following commands on a terminal emulator:
npm install --global slush # To install `slush`.npm install --global slush-phaser-plus # To install this generator.
Also, it's a good idea to have these installed too, as you may find them useful later:
npm install --global gulp # A task manager and streaming build system.
Start by creating a new directory to host your new project contents and go
inside it, then run
slush-phaser-plus, issuing the following commands, like
in the example below:
mkdir my-project # Note: Replace 'my-project' with whatever you like.cd my-projectslush phaser-plus
A brief questionnaire, asking you some details about your soon-to-be new game
project, should appear. Answer every question to proceed with the project
slush-phaser-plus will take care of installing all project
dependencies for you automatically.
slush-phaser-plus comes with some preset sub-generators to aid you in some
common game development tasks with Phaser. To use any of these, just run
slush-phaser-plus as you would, appending the name of your desired
$ slush phaser-plus:<sub-generator>
The following sub-generators are available, performing the tasks as described:
object: Helps creating game objects from a set of base classes.
plugin: A boilerplate for your own Phaser plug-ins.
Source code distributed under the terms of the MIT License.
Did you know?
Slush is a tool that uses Gulp for project scaffolding.
Slush does not contain anything "out of the box", except the ability to locate
installed slush generators and to run them with
To find out more about Slush, check out the documentation.