git clone https://github.com/digitalight/python_alien_invasion.git
cd python_alien_invasion
Make sure pipenv is installed on your system sudo apt install pipenv
Then install the required modules for the project with
pipenv install -r requirements.txt
Enable the environment with
pipenv shell
Run python3 alien_invasion.py
Press P or click Play to begin. <- -> Arrows keys to move ship Spacebar to fire.
First project in the second half of the book. Using PyGame
- Player controls a rocket ship that appears at the bottom center of the screen.
- The Player can move the ship right and left using the arrow keys.
- The Player can shoot bullets using the spacebar.
- When game starts 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.
- If any aliens hit the player or reach the bottom of the screen. Player loses a ship.
- If player loses ship 3 times, the game ends.
- Add scoreboard
Extra addons:
- Add Highscore to scoreboard
- Add SFX
- Make better title screen
- Instructions on how to play the game