Welcome to the Space Invaders project! This is a modern clone of the classic arcade-style game implemented using Pygame v2.5.2. Defend the Earth from invading aliens by shooting them down and avoiding their attacks.
Space Invaders is 2D game written in Python v3.12.1 following SOLID principles.
- Classic Space Invaders gameplay experience with some improvements.
- Player ship with the ability to move horizontally and shoot.
- Waves of alien invaders that progressively get faster and descend upon the player.
- Score tracking to keep track of your accomplishments.
Make sure you have the following installed before starting:
- Clone the repository:
git clone https://github.com/slymachenko/space-invaders.git
- Navigate to the project directory:
cd space-invaders
- Install the required dependencies:
pip install -r requirements.txt
Run the game by executing the following command:
python main.py
Defend the Earth by moving your ship horizontally with the arrow keys and shooting the aliens with the space bar. Be cautious — the aliens get faster as you progress through the waves!
- Left Arrow: Move the ship left.
- Right Arrow: Move the ship right.
- Space Bar: Shoot bullets to eliminate aliens.
We welcome contributions from the community to make this Space Invaders project even better.
- Before starting work, check existing issues or create a new one to discuss the changes you plan to make.
- If you have a feature request, please open a new issue.
- Fork the repository and create your branch from
main
. - Make your changes, ensuring you follow coding standards.
- Open a pull request, providing a clear title and description of your changes.
This project is licensed under the MIT License. By contributing, you agree to abide by its terms.
Enjoy playing Space Invaders!