
Project
This simple chest collecting game provided ample practice implementing classes with Typescript.
A base class for characters in the game was created, with class extensions for both the player and enemy. A text class was also completed for text UI overlays, with an extension used for keeping track of the score. Using a sprite sheet, I created character animations and implemented the logic for running those animations based on keyboard input.
Logic in the game included player movement, attacking enemies, having enemies follow and attack the player, a health point system, a score system, window resizing, and game win/lose conditions.
Technologies
Phaser3
Node
Typescript
Babel
Tiled
Webpack
Back