Use the arrow keys! (Pen is intended only to display the mechanics of movement in this demonstrator. Press r to reset your character and clear the screen)
Created for my CompSci class. This is different from the the example code we were provided for platformers, but is, in my opinion, more versatile. This game uses a somewhat unusual gravity and jumping script that allows for easy navigation of sloped surfaces and approximately parabolic paths through the air. It's not a perfect engine for sure but it's better than some. Fun fact: the character actually bobs up and down as it walks. This is a combination of how the movement script works and the animations