This is a simple platformer engine, free to copy. Be aware concerning the collisions conditions in the booleans, as they verify a color collision instead of a sprite contact. Enjoy !
Arrow keys to move. Feel free to copy :D