Skip to content

piecioshka/boilerplate-phaser-game

Repository files navigation

boilerplate-phaser-game

🍴 Starter of Phaser.js (simple game).

Use ECMAScript 2016 syntax.

Preview 🎉

https://piecioshka.github.io/boilerplate-phaser-game/

Features

  • ✅ Phaser v2.6.2
  • ✅ Webpack v2.2.1
  • ✅ Babel (ECMAScript 2015 + ECMAScript 2016 + Stage 0 of ECMAScript 2017)
  • super-event-emitter v4.1.4 as event management
  • ✅ Typings (phaser, super-event-emitter) for syntax highlighters
  • ✅ Simple structure for app: constants/, models/, states/
  • ✅ Example map (build in Tiled app)
  • ✅ Static directory: public/
  • ✅ Maximum 80 characters per line in each file!

Demo

Steps to launch the project

npm install       # install dependencies
npm run build     # build distribution files in public/dist/

Development

npm run typings   # support syntax highlighters
npm run watch     # run Webpack to listen of file modifications

Misc

npm run clear     # remove all generated files

License

The MIT License @ 2016