Brunch with Phaser 3 (TypeScript)
May 24, 2018 ยท View on GitHub
A Brunch skeleton for making games with Phaser 3 and TypeScript. (Why Brunch?)
brunch new <project> -s samme/brunch-phaser-typescript
Get started
- Install (if you don't have them):
- Run:
brunch new <project> -s samme/brunch-phaser-typescriptnpm run startorbrunch watch --serverwatches the project with continuous rebuild.npm run buildorbrunch build --productionbuilds a minified project for production.
- Make:
Phaser
Phaser is managed through npm. The latest release is installed when you create a new project.
npm view phaser version
Update with:
npm update
Other builds
See the npm.static entry in brunch-config.
Typescript
Phaser 3's definitions are still evolving, and there may be errors.
Add packages
npm install -S <package-name>
and then import as appropriate in your code.