Some basic sprite movement routines that you might find useful in platform games. Keys: A to move left, D to move right, Space to jump. There's no ground detection or anything - just basic left and right movement and a jump that returns you to the y position where you started. Jump power, gravity strength, acceleration and deceleration are configurable, and you can jump while moving left or right. The code is organized into blocks for easy reading.