Skip to content

JamesSkemp/phaser-battle-inf

Repository files navigation

Phaser Battle INF

This project is an attempt to recreate the basics of Battle INF, but with Phaser for the interface.

This is based upon the Starter Project for Phaser 3 with Visual Studio Code, TypeScript, and NodeJS.

How to Build the Site

To build this project you'll need Node.js installed.

Next run npm install in the root directory to install the various dependencies.

Run npm run build-dev or npm run build (for production) to populate the public directory with the final site contents.

If you'd like to run a simple web server, install http-server via npm install http-server -g, which can then be run from the public directory by running http-server.

Upgrading Phaser

To upgrade Phaser 3 run npm upgrade phaser (passing --save if you wish to update the package.json).

Phaser TypeScript definitions can currently be found at https://github.com/photonstorm/phaser3-docs/tree/master/typescript