Gravity works by accelerating an object. In our case gravity is down so our gravity constant is negative. Starting with an initial jump speed, gravity changes the sprites yVelocity by our gravity constant every tick of the repeat loop.