Awesome
Brunch with Phaser 3 (CoffeeScript)
A Brunch skeleton for making games with Phaser 3 and CoffeeScript. (Why Brunch?)
brunch new <project> -s samme/brunch-phaser-coffee
This is the CoffeeScript variant of brunch-phaser.
Get started
- Install (if you don't have them):
- Run:
brunch new <project> -s samme/brunch-phaser-coffee
npm run start
orbrunch watch --server
watches the project with continuous rebuild.npm run build
orbrunch build --production
builds a minified project for production.
- Make:
Phaser
Phaser is managed through npm.
npm ls --production
Update with:
npm update
Other builds
See the npm.static
entry in brunch-config.
Add NPM packages
npm install -S <package-name>
and in your code:
require 'package-name'
Add other libraries
Add the unminified script to vendor.
Plugins
# List
npm list --dev --depth=0
# Add (http://brunch.io/plugins)
npm install -D plugin-name