Fix jumping at the top of the screen in platformer example resetting the game.