Alien invasion is a simple game in which a player controls a ship that shoots bullets. The ship moves right and left, and fires bullets in response to player input. The objective of the game is to shoot down as many alien ships as possible.
This game requires Python to be installed for it to run. To install Python, click here.
To install this game on your computer:
- Create a directory where you wish to install the game.
$ mkdir alien
- Navigate to that directory and initialize git.
$ cd alien
$ git init
- Clone the game onto your computer
$ git pull https://www.github.com/eric-mahasi/Alien-Invasion.git
Alternatively, you could download a compressed version of the game here then unzip it.
To run the game, navigate into the game's source directory.
$ cd src
Launch the game.
$ python alien_invasion.py
The arrow keys on the keyboard are used to control the ship. Use the spacebar to fire bullets.
Please read HOW_TO_CONTRIBUTE.md for details on submitting pull requests.
This game is licensed under the MIT license - see the LICENSE.md for details.
This game is inspired by Project 1 found in the great book Python Crash Course: A Hands-on, Project-Based Introduction to Programming.