:video_game: The classic retro game recreated using Pygame and python
The classic retro game recreated using Pygame
and python
.
Follow the youtube video to see how I fared on spaceShooter
Button | |
---|---|
Move Left | left |
Move right | right |
Fire bullets | spacebar |
Quit game | Esc |
Windows
spaceShooter
inside the extracted file.Linux/Debian
based systemsIf 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.
spaceShooter
A Similar process would be followed for OS X
You need to have pygame
installed for this option.
FreeBSD
$ sudo pkg install devel/py-game
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/
$ chmod +x spaceShooter.py
$ python spaceShooter.py
Ubuntu/Debian
$ sudo apt-get install python-pygame
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/
$ python spaceShooter.py
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
$ git clone https://github.com/tasdikrahman/spaceShooter.git
$ cd spaceShooter/
$ python spaceShooter.py
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
windows
executable fileWAV
game music file as ogg
format is not playable as described in #1
OS X
executable file as the Debian
based one fails to execute on itYou 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.
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!
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
If you have found my little bits of software being of any use to you, do consider helping me pay my internet bills :)
PayPal | |
---|---|
Gratipay | |
Patreon | |
£ (GBP) | |
€ Euros | |
₹ (INR) |