Alien Invasion is a 2D game where players control a spaceship to fend off waves of aliens. The game includes scoring, levels, and a high score feature.

You can download the latest version of the executable here.
-
Download the Code:
- Download the code as a zip file and extract it.
-
Install Dependencies:
- Ensure you have Python installed.
- Install the
pygamepackage by running:pip install -r requirements.txt
-
Run the Game:
- Execute the game with the following command:
python alien_invasion.py
- Execute the game with the following command:
- Top Left: Number of ships left.
- Top Center: High score.
- Top Right: Current score.
- Top Right Below Score: Current level.
- Move Ship: Use arrow keys (left/right) to move the ship.
- Fire Bullets: Press the space bar to shoot bullets.
- Quit: Use Q key to Quit game.
To control various aspects of the game such as ship speed, bullet speed, and alien fleet speed, modify the corresponding values in settings.py.
Example settings you can adjust:
# Ship settings
self.ship_speed = 1.5
# Bullet settings
self.bullet_speed = 1.0
# Alien settings
self.alien_speed = 1.0