Skip to content
👾Python clone with a modern twist
Branch: master
Clone or download

Space Invaders

Language Module Release


Space Invaders is a two-dimensional fixed shooter game in which the player controls a ship with lasers by moving it horizontally across the bottom of the screen and firing at descending aliens. The aim is to defeat five rows of ten aliens that move horizontally back and forth across the screen as they advance towards the bottom of the screen. The player defeats an alien, and earns points, by shooting it with the laser cannon. As more aliens are defeated, the aliens' movement and the game's music both speed up.

The aliens attempt to destroy the ship by firing at it while they approach the bottom of the screen. If they reach the bottom, the alien invasion is successful and the game ends. A special "mystery ship" will occasionally move across the top of the screen and award bonus points if destroyed. The ship is partially protected by several stationary defense bunkers that are gradually destroyed by projectiles from the aliens and player.

How To Play

  • If you don't have Python or Pygame installed, you can simply double click the .exe file to play the game. Note: The .exe file needs to stay in the same directory as the sounds, images, and font folders.

  • If you have the correct version of Python and Pygame installed, you can run the program in the command prompt / terminal.

cd SpaceInvaders

Note: If you're using Python 3, replace the command "python" with "python3"

MacOS Mojave: You need to use Python 3.7.2 or greater: Source


Space Invaders

Notable Forks


Thanks for checking out my game and I hope you enjoy it! Feel free to contact me.

You can’t perform that action at this time.