In Alien Invasion, the player controls a ship that appears at the bottom center of the screen. The player can move the ship right and left using the arrow keys and shoot bullets using the spacebar. When the game begins, a fleet of aliens fills the sky and moves across and down the screen. The player shoots and destroys the aliens. If the player shoots all the aliens, a new fleet appears that moves faster than the previous fleet. If any alien hits the player’s ship or reaches the bottom of the screen, the player loses a ship. If the player loses three ships, the game ends.
There is also another version of the game - Target Shooting! Before starting this version of the game, you need to clone the branch:
$ git clone https://github.com/0muraliev/alien_invasion.git -b target_shooting
The minimum requirement for Alien Invasion is a set of Python modules - pygame for writing video games.
$ python -m pip install pygame==2.0.0
To start the game, just enter the following line into the command line:
$ python alien_invasion.py
Enjoy your game!