Files
Tirsvad 0449c45507 Add the README screenshots, the wiki in three languages and the reflection
Task: MIL-003#1
Task: MIL-003#2
Task: MIL-003#3
Task: MIL-003#4
Task: MIL-003#5
Task: MIL-003#6
2026-11-21 18:29:47 +08:00

3.6 KiB

English · Dansk · Bahasa Malaysia

Space Invaders

The classic Space Invaders shoot 'em up for one player with Python turtle graphics: move your spaceship, shoot the aliens before they reach you, and hide behind the barriers.

The score and lives line above the fleet

What is it?

Day 95 of the Udemy course 100 Days of Code: The Complete Python Pro Bootcamp. A black 800 by 600 window titled "Space Invaders" opens with a green spaceship at the bottom, four barriers above it and five rows of aliens at the top. Left and Right move the ship and Space fires one bullet at a time. Every second the aliens move closer, they turn and drop at the edges, and they move faster as fewer are left. They shoot back; a hit costs a life. The game is lost when an alien touches the ship, reaches its row or the lives run out, and won when the last alien is shot. The game was built in nine steps, one pull request per step, and each step has its own page with a screenshot and what we gained.

The nine steps

  1. Game screen
  2. Spaceship
  3. Shooting
  4. Alien fleet
  5. Alien movement
  6. Shooting aliens
  7. Barriers
  8. Game over and win
  9. Score and lives

Next