Skip to content

A Phaser project template, featuring Babel and localForage.

License

Notifications You must be signed in to change notification settings

nkpz/my-phaser-template

Repository files navigation

My Phaser Template

A project template for Phaser games, featuring Babel and localForage.

What's included?

  • Gulp task manager, to handle development and distribution tasks.

  • BrowserSync development server, for cross-device testing.

  • EditorConfig support, for consistent editor configuration between collaborators — check if EditorConfig support is available for your code editor.

  • JSHint for code quality check.

  • Bower for easy component management.

  • localForage for client-side data storage, including a sample Phaser wrapper plug-in.

  • Babel to translate from ES6 to ES5 syntax. See which language features are currently supported.

  • Handlebars templates, LESS style sheets, support for source maps output, off-line cache and much more!

This template includes a sample game, presenting some of the features you can already use.

Development Instructions

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 all required project dependencies.
npm start     # Launch a development server. Same as `gulp dev`.
npm run dist  # Prepare the game release for distribution. Also `gulp dist`.
npm run clean # Delete temporary and distribution build files.

Also, you may want to install Gulp and Bower globally, but you are not required to do so.

Happy coding!

License

All source code distributed under the terms of the MIT License.

This project is based upon earlier efforts by these two brilliant developers:

Some code borrowed from gulp-starter, by Daniel Tello.

About

A Phaser project template, featuring Babel and localForage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published