Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


:video_game: The classic retro game recreated using Pygame and python

Subscribe to updates I use spaceShooter

Statistics on spaceShooter

Number of watchers on Github 174
Number of open issues 5
Average time to close an issue 5 days
Main language Python
Average time to merge a PR 25 days
Open pull requests 6+
Closed pull requests 0+
Last commit almost 3 years ago
Repo Created almost 5 years ago
Repo Last Updated over 2 years ago
Size 2.82 MB
Homepage http://tasdikrahm...
Organization / Authortasdikrahman
Latest Releasev0.0.3
Page Updated
Do you use spaceShooter? Leave a review!
View open issues (5)
View spaceShooter activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating spaceShooter for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Space Shooter

The classic retro game recreated using Pygame and python.



[Back to top]

Follow the youtube video to see how I fared on spaceShooter

Space Shooter Demo - Youtube


[Back to top]

Screen 1 Screen 2
Screen 3 Screen 4

Game Features

[Back to top]

  • Health bar for the space ship
  • Score board to show how you are faring so far
  • Power ups like
    • shield: increases the space ships life
    • bolt: increases the shooting capability of the ship by firing 2 to 3 bullets instead of one at time.
  • Custom sounds and sprite animation for things like
    • meteorite explosion
    • bullet shoots
    • player explosion
  • 3 lives per game
  • Fun to play :)


[Back to top]

Move Left left
Move right right
Fire bullets spacebar
Quit game Esc


[Back to top]

For Windows

Linux/Debian based systems

Option 1: Download the zipped executable file

If your download was saved on the ~/Downloads folder

Press Ctrl + Alt + T to open the shell if you are on GNU/Linux based systems and type

$ unzip ~/Downloads/SpaceShooter-0.0.3.Linux.zip -d ~/Desktop
$ cd ~/Desktop
$ ## navigate to the unzipped file and change the file permissions for the executable
~/Desktop $ chmod +x spaceShooter
~/Desktop $ ./spaceShooter

This will unzip the file on your Desktop, you can replace it with the directory of your choice

NOTE : If it gives you an error, you probably don't have unzip installed in your system.

$ sudo apt-get install unzip

That should fix the error.

  • Run the executable named spaceShooter

A Similar process would be followed for OS X

Option 2: Build from source

You need to have pygame installed for this option.

For FreeBSD

$ sudo pkg install devel/py-game
Clone the repo
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/
$ chmod +x spaceShooter.py
$ python spaceShooter.py

For Ubuntu/Debian

$ sudo apt-get install python-pygame
Clone the repo
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/ 
$ python spaceShooter.py


You have to build from source to get it up and running on OS X. Reason? I don't have an OS X system to build the executable! So I would love for a Pull request on that one.

Building from source will do the trick though

$ pip3 install hg+http://bitbucket.org/pygame/pygame

Install Pygame specific dependencies

$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis
$ brew install sdl_mixer --with-libvorbis
Clone the repo
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/ 
$ python spaceShooter.py


[Back to top]

This game was written in one day, so the coding standards might not be up the mark. Don't be shy to make a Pull request :)

For details, please refer the Contributing page


[Back to top]

  • @bardlean86 for adding the third missile powerup and the main menu


[Back to top]

  • [x] Add the windows executable file
  • [x] Add main menu for the game
  • [x] Fix bug which stops the background music from looping
  • [x] Add support for WAV game music file as ogg format is not playable as described in #1
  • [ ] Add feature to pause to the game.
  • [ ] add feature to replay the game after all players die
  • [ ] Add OS X executable file as the Debian based one fails to execute on it


[Back to top]

You can report the bugs at the issue tracker


You can tweet me if you can't get it to work. In fact, you should tweet me anyway.


[Back to top]


[Back to top]

Built with by Tasdik Rahman(@tasdikrahman) under MIT License

You can find a copy of the License at http://tasdikrahman.mit-license.org/

License for them is in Public Domain


[Back to top]

If you have found my little bits of software being of any use to you, do consider helping me pay my internet bills :)

PayPal Donate via PayPal!
Gratipay Support via Gratipay
Patreon Support me on Patreon
(GBP) Donate via TransferWise!
Euros Donate via TransferWise!
(INR) Donate via instamojo
spaceShooter open issues Ask a question     (View All Issues)
  • over 4 years User cannot quit with close window button during menu screen
  • almost 5 years Executable for mac should be built separately
spaceShooter open pull requests (View All Pulls)
  • Use sys._MEIPASS for pyinstaller based relative path.
  • Master
  • Functionality to pause game added
  • Tweaked spaceShooter.py to fix issue #9
  • Hansw100 patch 1
  • Add player moving, Up&Down Limit, Background Moving
spaceShooter list of languages used
spaceShooter latest release notes
v0.0.3 v0.0.3


  • Added start menu
  • Added sound for the starting menu

Supported OS's

Tested on

  • Windows (7 / 8)
  • Ubuntu (14.10 / 15.04 /15.10 )

For next release

  • Add feature to reload the main menu after all lives are over
v0.0.2 v0.0.2


  • Increased the difficulty of the game a little.
  • Included
    • README
    • CONTRIBUTING files in the zip files
v0.0.1 v0.0.1


  • Supports
    • OS X
    • Windows
    • Linux/Debian based systems.

For Ubuntu/OS X

  • Extract the file named SpaceShooter-0.0.1.Linux.zip
  • Run the executable named spaceShooter

For windows

  • Extract the zip file named spaceShooter-0.0.1-windows.zip and extract it to a folder.
  • Run the spaceShooter file and enjoy the game :smile:
Other projects in Python
Powered by Autocode - Instant Webhooks, Scripts and APIs
Autocode logo wordmark