A complete project template for developing Phaser web games including Browserify, BrowserSync and more.
-
Gulp task manager, to handle development and distribution tasks, with alternative npm scripts provided.
-
BrowserSync for cross-device testing.
-
Browserify for easier management of components and dependencies.
-
Babel to compile ECMAScript 2015 scripts (or future specs) into scripts compatible with today's browsers. Check which language features are currently supported.
-
ESLint for code quality check.
-
EditorConfig support, for consistent editor configuration between collaborators — check if [EditorConfig support][ecpl] is available for your code editor.
Download and extract the packaged project contents, or clone this repository locally. Either way, the following npm scripts are available to you, performing the tasks described below.
npm install # Installs the required project dependencies.
npm start # or `gulp dev`: Launches the game in development mode.
npm run dist # or `gulp dist`: Prepares the game for distribution.
npm run clean # or `gulp dist:clean`: Deletes build files.
(Optionally, you could install Gulp globally, but you are not required to do so.)
Like phaser-plus-template
? You may also like its companion
generator-phaser-plus
, a new Yeoman generator I'm working on.
Check it out!
All source code distributed under the terms of the MIT License.
This project draws upon earlier efforts of these two brilliant developers: