Before we start to work on enemies and combat mechanics, we’re going to do a large refactor of our codebase. This will make it easier to work with multiple game entities such as enemies and monsters and introduce some new features from Phaser.
The new dungeon module will have more responsibilities than before as it will be used to manage both the level rendering and the game entity movements. Previously, our player class would change the dynamic layer tilemap directly when it needed to move. After our refactor, that class will call the functions provided by the dungeon module ...