Home

Awesome

Space Shooter

The classic retro game recreated using Pygame and python.

<a href="https://news.ycombinator.com/item?id=10925168"><img src="https://raw.githubusercontent.com/wingify/across-tabs/master/images/hn.png" width="150" height="20"/></a> <a href="https://www.producthunt.com/posts/space-shooter"><img src="https://raw.githubusercontent.com/wingify/across-tabs/master/images/product_hunt.png" width="100" height="20"/></a>

Index

Demo

[Back to top]

Follow the youtube video to see how I fared on spaceShooter

Space Shooter Demo - Youtube

Screenshots

[Back to top]

Screen 1Screen 2
Screen 3Screen 4

Game Features

[Back to top]

Controls

[Back to top]

Button
Move Left<kbd>left</kbd>
Move right<kbd>right</kbd>
Fire bullets<kbd>spacebar</kbd>
Quit game<kbd>Esc</kbd>

Installation

[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 <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd> 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.

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

For MAC OS X

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

Contributing

[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

Contributers

[Back to top]

To-do

[Back to top]

Issues

[Back to top]

You can report the bugs at the issue tracker

OR

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

Credits

The game is a fork of the video instructions given by KidsCanCode. I have made several additional enhancements to it. Do check out their Channel!

Similar

[Back to top]

License

[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

Donation

[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<a href="https://paypal.me/tasdik" target="_blank"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg" alt="Donate via PayPal!" title="Donate via PayPal!" /></a>
Gratipay<a href="https://gratipay.com/tasdikrahman/" target="_blank"><img src="https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.png" alt="Support via Gratipay" title="Support via Gratipay" /></a>
Patreon<a href="https://www.patreon.com/tasdikrahman" target="_blank"><img src="http://i.imgur.com/ICWPFOs.png" alt="Support me on Patreon" title="Support me on Patreon" /></a>
£ (GBP)<a href="https://transferwise.com/pay/d804d854-6862-4127-afdd-4687d64cbd28" target="_blank"><img src="http://i.imgur.com/ARJfowA.png" alt="Donate via TransferWise!" title="Donate via TransferWise!" /></a>
€ Euros<a href="https://transferwise.com/pay/64c586e3-ec99-4be8-af0b-59241f7b9b79" target="_blank"><img src="http://i.imgur.com/ARJfowA.png" alt="Donate via TransferWise!" title="Donate via TransferWise!" /></a>
₹ (INR)<a href="https://www.instamojo.com/@tasdikrahman" target="_blank"><img src="https://www.soldermall.com/images/pic-online-payment.jpg" alt="Donate via instamojo" title="Donate via instamojo" /></a>