- 📋 Project Description
- ✨ Features
- ⛏️ Built Using
- 🎫 Dependencies
- 📥 Installation
- 📝 Usage
- ✍ Contributors
- 💳 License
- 🏅 Acknowledgments
Alien invasion game that the user can interact with by destroying aliens' spaceships using a spaceship
demo.mp4
- The player controls a spaceship at the bottom of the screen
- The ship can move left and right using the arrow keys
- The ship can fire bullets upwards by pressing the space bar
- Rows of alien spaceships appear at the top of the screen and move back and forth
- The game stops when the user hits aliens' spaceships or when he closes the window
- The user can destroy all aliens' spaceships and more aliens' spaceships will appear
- Python Crash Course, 3rd Edition Book: Provided spaceships
- @Mohammed-Dhabaab: Provided the banner and the video demo
- You need to install Python=3.11.0, to ensure compatibility
- Add python to environment variables (PATH)
- Use the package manager pip to install pygame=2.5.2:
pip install pygame=2.5.2
-
Create alien_invasion environment:
conda env create -f environment.yml
-
Activate alien_invasion environment:
conda activate alien_invasion
-
Run the program:
python src/main.py
To play the Alien Invasion game, follow these steps:
- Clone or download the project
- Follow 📥 Installation process
- After running the program
- To move the spaceship use the arrow keys
- To shoot by the spaceship press space
- Python Crash Course, 3rd Edition Book: One of the resources I learned Python through it