Go to Live Site Next Page
The ball has a certain position (x and y), and also a certain velocity expressed as x and y components).
For each frame, the x and y positions are altered by the amount of the x and y velocities, producing an apparent effective motion.