Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.73 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.73 KB

Brunch with Phaser 3 (TypeScript)

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-typescript
    • npm run start or brunch watch --server watches the project with continuous rebuild.
    • npm run build or brunch build --production builds a minified project for production.
  • Make:
    • Write your code in app.
    • Put game assets in assets.

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.

Configuration