Fix jumping while moving up a slope in platformer example.