Nudging the spaceship
Each frame you add a little to the spaceship's position — its velocity. Small, repeated nudges add up to smooth motion across the screen.
Position and velocity
A sprite is a 2-D image with a position. Adding its velocity each frame moves it; gravity is just a downward velocity that grows.