A classic arcade game, rebuilt step by step in your browser.
What you already know
You've already learned that a variable is a labeled box holding a value that your code can change.
Pac-Man builds on that — plus one new idea: a ghost that follows a rule every single frame (chase the player). That repeating rule is the seed of a loop.
What you'll build
You'll start with Pac-Man alone on screen — you'll only change his color at first.
Step by step, you'll add movement, dots to eat, a ghost, lives, a timer, and rising difficulty.
By the last step, you'll have rebuilt a real arcade-style chase game.