This project is based on the "Alien Invasion" project from the book "Python Crash Course" by Eric Matthes. It's a simple game where the player controls a spaceship and shoots aliens.
As a beginner in the world of programming, I embarked on this project as part of my exploration into the fundamentals of Python. The book played a pivotal role in my learning experience, providing clear explanations, hands-on exercises, and practical projects like this one.
These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.
- Python 3.x
- Pygame library (install using
pip install pygame
)
-
Clone the repository:
git clone https://github.com/your-username/alien-invasion.git
-
Navigate to the project directory:
cd alien-invasion
-
Run the game:
python alien_invasion.py
- Left Arrow Key: Move the spaceship to the left.
- Right Arrow Key: Move the spaceship to the right.
- Space Key: Shoot lasers to destroy aliens.
Feel free to customize and modify the game to enhance your Python programming skills. Have fun playing and coding!