12. Project: Alien Game
1. Simple Definition & Meaning
In this advanced project, you use everything you learned to build a 2D Space Shooter Game! You will use a library called Pygame.
2. Real-World Examples
- Example 1: Just like playing classic Space Invaders. You control a spaceship and shoot aliens that drop from the sky!
3. Important Points
- You will use Classes (OOP) heavily here. The Ship is a class, the Bullet is a class, the Alien is a class.
- The game runs in a massive
while True:loop called the "Game Loop", which updates the screen thousands of times a minute!
📝 Exam Notes (Quick Revision)
- Pygame: A 3rd party module for making games.
- Sprites: 2D images representing game objects.
- Game Loop: The heartbeat of the game (checks events, updates positions, draws screen).