Skip to content

digitalight/python_alien_invasion

Repository files navigation

Alien Invasion

Install

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

Playing the game

Run python3 alien_invasion.py

Controls

Press P or click Play to begin. <- -> Arrows keys to move ship Spacebar to fire.

Screenshot

First project in the second half of the book. Using PyGame

Plan

  • 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

About

Python Alien Invasion Game from Python Crash Course Book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages