Phaser 3 Boilerplate Starter Project written in TypeScript ( Snake game example).
Phaser is a wonderful, fast and free open source HTML5 game framework. Here you will find everything you need to develop games with Phaser 3 in TypeScript. Have fun discovering, developing and playing! Ideas and corrections are highly desirable to constantly improve this repository!
Download and install npm with Node.js @ https://nodejs.org/en
Select a folder, navigate to it, and clone this repository with this command-line:
git clone https://github.com/iliyaZelenko/phaser3-typescript-boilerplate.git
Install the dependencies with this command-line:
npm install
Easy development in HMR (Hot Module Replacement) mode:
npm run dev
Perform a build (bundle.js) in dist
folder with copy assets and html page from src.
npm run build
In this project you have Snake Game example it shows how you can use the Type Script with Phaser.
DEMO.
- Phaser.Game
- Phaser.Scene
- Phaser.GameObject.Image
- Phaser.GameObject.Sprite
- Phaser.GameObject.Group
- Phaser.GameObject.Mesh