Added a small comment and some enters to the code from ruscoe!
Removed the player image, I now use spritesheets for all the entities.
Sprite's now change their direction based on their last movement, they can either face left or right!
Updated the entities spritesheet! The center is now on their bodies and not on their eyes. Looks a lot better when turning around.
Made a separate function for the direction change of a sprite!
It's now possible to define an offset for a sprite. This way you can render something above, below, left or right of it's original position.