Phaser 3 TypeScript - The flappy bird
This is a Phaser 3 starter with TypeScript, Rollup with β‘οΈ lightning fast HMR through Vite.
π Available Commands
Command | Description |
---|---|
pnpm install |
Install project dependencies |
pnpm dev |
Builds project and open web server, watching for changes |
pnpm build |
Builds code bundle with production settings |
pnpm serve |
Run a web server to serve built code bundle |
π§πΏβπ» Development
Install pnpm
:
npm i -g pnpm
After cloning the repo, run pnpm i
from your project directory. Then, you can start the local development
server by running pnpm dev
and navigate to http://localhost:3000.
πββοΈ Production
After running pnpm build
, the files you need for production will be on the dist
folder. To test code on your dist
folder, run pnpm serve
and navigate to http://localhost:5000.