This is an ES6-based boilerplate for creating a multiplayer game using Phaser and Webpack. It is very opinionated as it strips out various unneeded components from Phaser and uses howler.js rather than Phaser Audio.
The purpose of this repo is to be a starting point for creating a game. The idea is to copy the contents and then modify from there. Look at the usage below for instructions on how it all works.
- Phaser-CE through npm (automatic custom build).
- Boilerplate written in ES6 class structure.
- Heavily commented and stripped down for most minimal build.
- Webpack + Bublé + PostCSS.
- BrowserSync for livereload during development.
- Stats.js for displaying FPS/MS.
- phaser-manifest-loader for easy asset loading.
- Separate builds for production and development.
Install the dependencies.
npm i
Start the development web server.
npm run dev
Access your project in the browser.
localhost:7777
Open a new terminal and run.
node server.js
Change your port to localhost:8081
.
Then start building your game!