This project is indented to help everyone with getting started with Phaser + TypeScript game development, once you download it you are ready to start right away.
- Download the project: https://github.com/wlk/phaser-typescript-boilerplate/archive/master.zip
- Install dependencies (more information below)
- Write your game, you can start with
src/app.ts
- Run in development mode (more information below)
- Repeat 3-4 until your game is ready
- Build in production mode (more information below)
You need to have node
and npm
installed
You need to have typescript installed (globally):
sudo npm install -g typescript
sudo npm install -g tslint
Then inside the project directory run:
npm install
This will install all required local dependencies
To build project you can use:
npm build
Or just run:
tsc
the tsconfig.json
has is configured for you
npm dev
tslint
doesn't support directory as parameter (you can use what's integrated in your IDE)
Intellij has pretty good support for Typescript and this project, you can either used bundled typescript compiler or use the one installed via npm (but make sure you are putting generated *.js
files to the build
directory)
Pull requests and issues with improvements/fixes/suggestions/etc are welcome.