Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goldfire/phaser-boilerplate
Phaser ES6 Boilerplate
https://github.com/goldfire/phaser-boilerplate
es6 phaser phaser-boilerplate webpack
Last synced: about 1 month ago
JSON representation
Phaser ES6 Boilerplate
- Host: GitHub
- URL: https://github.com/goldfire/phaser-boilerplate
- Owner: goldfire
- Created: 2017-03-26T19:32:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T22:53:09.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T15:05:12.385Z (about 1 month ago)
- Topics: es6, phaser, phaser-boilerplate, webpack
- Language: JavaScript
- Homepage:
- Size: 279 KB
- Stars: 59
- Watchers: 7
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phaser ES6 Boilerplate
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.
## Features
* [Phaser-CE](https://github.com/photonstorm/phaser-ce) through npm (automatic custom build).
* Boilerplate written in ES6 class structure.
* Heavily commented and stripped down for most minimal build.
* [Webpack](https://webpack.js.org/) + [Bublé](https://buble.surge.sh/guide/) + [PostCSS](http://postcss.org/).
* [BrowserSync](https://browsersync.io/) for livereload during development.
* [Stats.js](https://github.com/mrdoob/stats.js/) for displaying FPS/MS.
* [phaser-manifest-loader](https://github.com/mattcolman/phaser-manifest-loader) for easy asset loading.
* Separate builds for production and development.## Usage
Clone the git repo.
`[email protected]:goldfire/phaser-boilerplate.git`
Install the dependencies.
`npm i`
Start the development web server.
`npm run dev`
Access your project in the browser.
`locahost:7777`
Then start building your game!