CompassSoftware / AppTAG

AppState's TAG - The Accounting Game
MIT License
0 stars 0 forks source link

character movement by clicking the mouse #221

Open yuanboz opened 4 years ago

yuanboz commented 4 years ago

It works pretty well. Players can control the character by both the keyboard and the mouse.

Small issues: The coordinates of the character will be set to the input after the movement. So the panel image won't disappear until finishing movement. The character always faces to the south while moving.

Only apply this feature to the first room. Be careful to merge this branch to the master since there are lots of codes have been changed.

yuanboz commented 4 years ago

Reference: http://phaser.io/examples/v3/view/physics/arcade/move-and-stop-at-position