Basic platformer code.