Alien Invasion is a 2D shooting game where the player controls a spaceship and must shoot down waves of aliens. The game is built using Python and Pygame.
- Fullscreen game window
- Player-controlled spaceship
- Waves of aliens with increasing difficulty
- Score tracking and high score management
- Play button to start a new game
- Ship lives display
- Level progression
To run the Alien Invasion game on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/sashakukhtyk/alien-invasion.git
-
Navigate to the project directory:
cd alien-invasion
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the game:
python alien_invasion.py
- Use the Right Arrow and Left Arrow keys to move the spaceship.
- Press the Spacebars to shoot bullets.
- Press the Q key to quit the game.
- Click the Play button with the mouse to start a new game.
- Python 3.x
- Pygame
alien-invasion/
├── alien_invasion.py # Main game file
├── settings.py # Settings for the game
├── game_stats.py # Game statistics
├── scoreboard.py # Scoreboard display
├── button.py # Play button
├── ship.py # Player's spaceship
├── bullet.py # Bullets fired by the spaceship
├── alien.py # Aliens
├── requirements.txt # Required dependencies
└── README.md # Project documentation
Contributions are welcome! If you have any improvements or suggestions, submit a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the Pygame community for their excellent resources and support.
Feel free to customize this README to fit your project's specific details and requirements.