Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.16 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.16 KB

👽 Alien Invasion

Practical project of the Python Crash Course book.

About

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.

Requirements

Controls

Button Action
P Starts the game
Q Close the game
Arrows keys (left/right) Move the ship (left/right)
Space-bar Shoot

How to play

git clone https://github.com/kastorcode/alien-invasion-pygame.git
cd alien-invasion-pygame
python alien_invasion.py