Currently the player's animations are all hard-coded in the constructor, whereas for a monster you can see that their animations are loaded from a file. At the very least, the player's animations should also be loaded from data.js. The character's behaviors are dependent on these animations so it can't be fully refactored yet until the relationship between the two is fleshed out completely.
Currently the player's animations are all hard-coded in the constructor, whereas for a monster you can see that their animations are loaded from a file. At the very least, the player's animations should also be loaded from data.js. The character's behaviors are dependent on these animations so it can't be fully refactored yet until the relationship between the two is fleshed out completely.