Skip to content
Space Invaders clone with a modern twist
Python
Branch: master
Clone or download
Pull request Compare This branch is 21 commits ahead, 56 commits behind leerob:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fonts
images
sounds
LICENSE
README.md
microbit_com.py
spaceinvaders.py

README.md

Space Invaders

Language Module Release

About

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.

The original version was created by Lee Robinson: https://github.com/leerob/Space_Invaders

How To Play

Control the ship by tilting the micro:bit left and right to move and press either button to fire. Use microbit_com.py on the micro:bit and then start the game with:

cd SpaceInvaders
python3 spaceinvaders.py

Note that this uses the device /dev/ttyACM0, as the micro:bit appears in Linux. The constant MB_DEVICE needs to be changed in spaceinvaders.py to work with a different operating system.

Contact

See the original repository for contact details.

Released under the MIT License. See the LICENSE file for details.

You can’t perform that action at this time.