This is the game engine of a flat 2-Dimensional Game. Feel free to remix/backpack this so you don't have to go through the tedious process of designing and redesigning the same base system for every 2D game you make.
All by me :) I got inspiration of hitboxes from other projects though. Platformer Game Engine ---------> https://scratch.mit.edu/projects/418257081/