This is a simple 2d platformer template with explained and readable code that can easily be tweaked.
It includes a series of features: -My own algorithm that locks the framerate dynamically to a value between 30 and 60 so it is more or less stable and also modifies the variables so that the game still runs at usual speed and it is still playable when a particular machine can't do 60fps. -Room switching -A health bar -Basic character movement -Enemies with a CPU-cheap AI that traverse the rooms and chase and damage the player. They are controlled by an enemy director object. -Collisions with environment objects, including the ability to walk on slopes. -The player character has the ability to bounce on the walls and the enemies can stick to them and climb them. -It's easily modifiable and expandable.