This is a minimal Phaser & TypeScript template. It is configured with:
./config
../config
).Make sure you have a recent version of node (and npm), open up the project and run:
npm install
See the scripts in package.json, but the following scripts are provided:
npm run dev
, run webpack in development mode and open up a browser with the app running.npm run build
, run webpack in production mode and build the app to ./dist
.npm run deploy
, build the app and push it to a GitHub pages branch within the repository.src/assets/
folder is copied over in the build process, so anything placed in there is available for loading within Phaser, see LoadingScene
.