Hello everyone; I have some good news: all level objects now derive from the base class I talked about last time, completing a large chunk of the refactoring! Some things are partially broken, such as character hitboxes, but those can be fixed easily and are subject to change anyway, so it’s not a big deal.
Right now I’m currently rewriting the object movement code, since the previous code wasn’t too great on runtime due to its accuracy and was very hard to read. This new method of movement is awesome because if the player manages to get stuck inside a tile or solid object somehow, he/she can easily get his/her character out by simply moving! I wasn’t going to do this at all originally, but since I’m modifying collision detection anyway I figured it was appropriate.
I just wanted to share a quick update on the game’s status; until next time!