All projects

Build a platformer game

Build a game where you run, jump, collect coins and stomp enemies, then put it online for anyone to play.

For anyone who knows Python basics: variables, lists, dictionaries, loops and functions. No game experience needed.

Start chapter 1

What you will build, part by part

  1. Game loop
  2. Player
  3. Platforms
  4. Level
  5. Camera
  6. Coins
  7. Enemies
  8. Online

Chapters

12 chapters · about 6 hours
  1. 1How games work15 min
  2. 2Set up your project25 min
  3. 3A window and the game loop20 min
  4. 4Move the player20 min
  5. 5Gravity and jumping25 min
  6. 6Platforms and collisions35 min
  7. 7Levels from text30 min
  8. 8A scrolling camera20 min
  9. 9Coins and score25 min
  10. 10Enemies, winning and losing45 min
  11. 11Share it40 min
  12. 12Make it yours60 min

You write the code on your own computer. The starter project and each chapter's finished code are on GitHub.