Motion

Realistic motion in a game comes from two sources:

You will learn several ways to simulate velocity and acceleration by moving a variable amount or by changing your y coordinate by a variable amount.

Details: in a game, the “tick” speed is usually constant, so changing something by 2 is really the rate “2 per tick”. This means that instead of worrying about a rate of change (=amount/time) we use ticks for the time and just worry about the amount of change.