This is a Python-based game project built using the pygame
library. The game involves an alien invasion scenario where players must defend against waves of alien attackers.
- Interactive Gameplay: Control your spaceship and defend against alien invaders.
- Customizable Settings: Modify game settings like screen resolution, difficulty, and more (Throgh codebase).
- Smooth Animations: Powered by the
pygame
library for seamless graphics and animations. - Unit Tests: Includes test cases to ensure the reliability of core game functions.
-
Clone the repository:
git clone https://github.com/nitinsingh98/Alien-Invasion.git cd alien-invasion
-
Install dependencies:
pip install -r requirements.txt
-
Run the game:
python main.py
- Press Play button to start the game
- Use arrow keys to move your spaceship.
- Press the spacebar to shoot.
- Avoid alien attacks and destroy all invaders to win.
This project includes unit tests to ensure the core functionality of the game. To run the tests, use:
python -m pytest
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Built with the amazing
pygame
library. - Inspired by classic arcade games.
Enjoy the game!