Skip to content

scottgriv/python-alien_invasion_game

Repository files navigation


Python Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Python Alien Invasion Game

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.


Table of Contents

How to Play

  • 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.

Getting Started

To play the game, run the following command from the root directory of the project:

python3 -m alien_invasion

Resources

License

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.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


Releases

No releases published

Packages

No packages published

Languages