Create Phaser Web games using Browserify, BrowserSync, Gulp and more.
New in version "1.0": Choose how you want to craft your game code:
-
With application scripts written as CommonJS modules, ideal for newcomers as well seasoned developers who want to start creating games at once.
-
Or using ECMAScript modules and the latest available spec features. Comes with Babel compiler to make scripts of the future compatible with today's browsers and devices. Recommended for skilled developers and adventurers.
Note: All projects are configured to use the Phaser CE libraries.
Projects created with generator-phaser-plus
are powered by the following tools:
-
Gulp task manager, to handle development and distribution tasks, with alternative npm scripts.
-
BrowserSync for cross-device testing.
-
Browserify for easier management of components and dependencies.
-
ESLint for code quality check.
Note: Assuming you have already installed Node.js.
-
Get Yeoman and
generator-phaser-plus
via npm.npm install --global yo # Install Yeoman if you don't have it yet. npm install --global generator-phaser-plus # Install generator-phaser-plus.
-
Create a directory to keep your project contents and go into it.
mkdir my-awesome-game cd my-awesome-game
-
Create your new game project.
yo phaser-plus
-
Launch it!
npm start
Have a look at the documentation to learn more about available features and the most recent development updates, including sub-generators, how projects are structured, development tasks and a more in-depth hands-on tutorial, presenting the general workflow and how you can take advantage of the generator to speed up your game development.
This software is distributed under the terms of the MIT License.