Please refer to https://updatestage.com/create-a-phaser-3-project-part-1/ for build up the enviorment, phaser and typescript.
Basically, you need to:
git clone --recursive path/to/this/repo.git
or if you forgot the--recursive
, rungit submodule update --init --recursive
inside the root folder to get the submodules inited.npm i
to install dependencies.tsc
to run the typescript compiler. It will keep running and detect any changes, which will trigger a re-compile.- The compiled javascript and html files will be in
bin/
and a HTMLbin/index.html
.
You can view the docs under docs/index.html
.
- (OK) Add cooldown timer related things (1 timer is okay) to MobListener base class
- Move attack speed timer from Mob to Weapon (using MobListener cooldown timer API)
- Let MobListener able to listen to MobListeners (e.g. char listen to weapon, team buff listen to all player's weapon)
- Let testGirl attack the woodLog with a fireball (which applies a burnt debuff) !