A Brunch skeleton for making games with Phaser 3 and TypeScript. (Why Brunch?)
brunch new <project> -s samme/brunch-phaser-typescript
- Install (if you don't have them):
- Run:
brunch new <project> -s samme/brunch-phaser-typescript
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 is managed through npm. The latest release is installed when you create a new project.
npm view phaser version
Update with:
npm update
See the npm.static
entry in brunch-config.
Phaser 3's definitions are still evolving, and there may be errors.
npm install -S <package-name>
and then import as appropriate in your code.