Shoot down the alien invasion! A simple game built with Python and Pygame.
The code in this repository was created by following a tutorial in a book I read named Python Crash Course, Second Edition by Eric Matthes; a great book that I highly recommend reading if you're beginning to learn Python programming. The book contains the basics of Python and a number of demo projects along with the source code available on GitHub (link to the main branch as well as the book in Resources below) to truly learn Python in an easy to understand way.
- Use the left and right arrow keys to move the ship.
- Use the spacebar to shoot bullets.
- Shoot down all the aliens to win the game.
- If any alien hits the bottom of the screen or collides with the ship, you lose a ship.
- If you lose three ships, the game ends.
- Press Q to quit the game.
To play the game, run the following command from the root directory of the project:
python3 -m alien_invasion
- Python
- Pip
- Pygame
- Python Crash Course, Second Edition
- Python Crash Course, Second Edition - Online Resources
- Python Crash Course, Second Edition - GitHub Repository
This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.
- The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the LICENSE file in this repository.
Author: Scott Grivner
Email: [email protected]
Website: scottgrivner.dev
Reference: Main Branch