I am a junior developer and relatively new to Phaser 3, Typescript, and web dev in general.
I have been using Phaser + Typescript with @yandeu’s excellent Typescript starter for some personal projects for a bit, and wanted to formalize a couple of the gameplay scripts I had written, and open source it to encourage others to read through my code, help me out, and contribute new ideas!
Find the GitHub repository here.
Top Down Movement - WASD Movement for top down games!
‘Feedback’ Tweens - Tweens that disable and enable interactivity, for common “clickable” buttons / interactions
Damage Class - A data-only class that does the standard adding and subtracting for damaged objects.
It is very small right now, and I am just hoping for some feedback or tips, mainly because I am new to Typescript in general. There are some issues I have been having figuring out how to use types with Phaser’s library, and sometimes I default to using
object : any which I know is a big NO in the TS world!
I tried to model some of the gameplay scripts to be bite-sized, Phaser-3-examples types of scripts, so it can easily be dropped into any project!
Let me know your thoughts and if you have any feedback! Please contribute if you’re interested! Thanks!