Intro to Game Development
Lesson 2 of 3 6 min +40 XP

Sprites & Movement

Moving objects with velocity.

What you'll learn

  • Understand sprites & movement
  • Apply it to real examples
  • Check yourself with a quiz
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.

Knowledge Check

+10 XP / correct

1. How does a sprite move each frame?

2. Gravity in a game is…