/Multiplayer-realtime-game-with-Phaser-Firebase-and-ES6

Multiplayer realtime game with Phaser, Firebase and ES6

Primary LanguageJavaScriptMIT LicenseMIT

Multiplayer realtime game with Phaser, Firebase and ES6 (In progress)

Demo: http://webeli.com/phasergame

Features

✔ Heavily commented, flexible Gulpfile (that means it uses Gulp).

Browserify + Babelify (Yes, it uses Babel).

Browsersync = Livereload + Mobile debugging with Weinre.

✔ Example: Extending Phaser & modular development.

✔ Production (UglifyJS) and Development (Sourcemaps) builds.

✔ Did I say ES6? Well.. some ES7 too! (See Experimental features).

Usage

Install dependencies

npm install

Run a development build...

npm start

...or a production build.

npm run production

Development builds will copy phaser.min.js together with phaser.map and phaser.js Your ES6 code will be transpiled into ES5 and concatenated into a single file. A sourcemap for your code will also be included (by default game.map.js).

Production builds will only copy phaser.min.js. Your ES6 code will be transpiled and minified using UglifyJS.

Any modification to the files inside the ./src and ./static folder will trigger a full page reload.

If you modify the contents of other files, please manually restart the server.

Credit

Thanks to belohlavek for the boilerplate: https://github.com/belohlavek/phaser-es6-boilerplate