• This repository has been archived on 01/Nov/2022
  • Stars
    star
    507
  • Rank 87,068 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created almost 9 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŽฎ The classic retro game recreated using Pygame and python

Space Shooter

The classic retro game recreated using Pygame and python.

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 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 :)

Controls

[Back to top]

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

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 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

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]

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

To-do

[Back to top]

  • Add the windows executable file
  • Add main menu for the game
  • Fix bug which stops the background music from looping
  • 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

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 Donate via PayPal!
Gratipay Support via Gratipay
Patreon Support me on Patreon
ยฃ (GBP) Donate via TransferWise!
โ‚ฌ Euros Donate via TransferWise!
โ‚น (INR) Donate via instamojo

More Repositories

1

vocabulary

[Not Maintained anymore] Python Module to get Meanings, Synonyms and what not for a given word
Python
559
star
2

tnote

๐Ÿ“‹ A command line note taking app so simple that even your grandparents will love it!
Python
232
star
3

xkcd-dl

โฌ Download ALL xkcd's which have been uploaded till date. Ever!
Python
145
star
4

spammy

Spam filtering made easy for you
Python
141
star
5

plino

Flask based spam filtering system built on top of https://github.com/prodicus/spammy
CSS
74
star
6

terraform-gcp-examples

Terraform Google cloud platform examples
HCL
58
star
7

pyzipcode-cli

๐Ÿ“ฌ Extract all possible meta data using Zipcode
Python
34
star
8

pyCalc

๐Ÿ’ป A GUI Calculator using Tkinter
Python
31
star
9

easyrbac

RBAC0 implementation (core part)
Python
30
star
10

markovipy

Yet another markov chain sentence generator
Python
27
star
11

thanos

A dead simple demonstration of SQL injection in an SQLite database
Python
24
star
12

pygame-boilerplate

A dead simple pygame boilerplate
Python
22
star
13

movieReviewsAnalysis

Some stupid Movie reviews analyzed and classified using nltk and scikitlearn
Jupyter Notebook
20
star
14

ansible-bootstrap-server

the bare essentials when you spin up a server
Shell
17
star
15

spamfilter

DEPRECATED: Go to https://github.com/prodicus/spammy for DEV version
Python
14
star
16

bhola

Bhola tells it's overseer on when the certificates tracked by bhola are about to expire
Ruby
13
star
17

opencv_edge_detection

[WIP]
Python
10
star
18

margo

An opinionated Slack bot written for SRMSE's slack channel
Python
9
star
19

dotfiles

๐Ÿ”ง
Shell
7
star
20

terraform-google-network

Terraform module : GCP : for creation of VPC network
HCL
5
star
21

cgi_login

a simple login system using CGIHTTPServer and sqlite3
Python
5
star
22

datasets

random public datasets encountered by me
4
star
23

terraform-google-network-subnet

Terraform module : GCP : for creation of subnet inside a VPC network
HCL
4
star
24

web_crawlers

as the name says
Python
3
star
25

foodoh

OUTDATED: Go to https://github.com/foodoh. Made a food recommendor system at Startup Weekend Chennai '15. Named it "foodoh"!
Python
3
star
26

terraform-google-network-firewall

Terraform module : GCP : for creation of firewall rules inside the VPC
HCL
3
star
27

tasdikrahman.me

NOTE: has been moved over to tasdikrahman.com
CSS
2
star
28

tasdikrahman.com

[wip] mirroring tasdikrahman.me for now.
CSS
2
star
29

srm_search_engine

OUTDATED: Head over to https://github.com/SRMSE
Python
2
star
30

opencv3-ansible-vagrant-playbook

Ansible playbook for configuring OpenCV 3.1.0 with python3 on top of a Ubuntu 14.04.05 vagrant box/your preferred cloud service (AWS/DO droplet etc.)
2
star
31

k8s-cluster-upgrade-tool

OSS release of the internal k8s cluster upgrade tooling we have
Go
2
star
32

test-goreleaser

testing goreleaser
Go
1
star
33

shivangidwivedi.com

shivangidwivedi.com
CSS
1
star
34

zshrc

My zshrc
Shell
1
star
35

go-whois

1
star
36

infra

my setup on DO for my homelab on k8s
HCL
1
star
37

btech-major-project-thesis

"Processing textual notes using advanced image processing techniques"
TeX
1
star
38

talks

contains the talks that I have given so far
Python
1
star
39

scripts

This lives in my ~/bin/scripts directory and is added to my $PATH.
1
star
40

docker-flask

Simple example of integrating docker with web apps
Python
1
star
41

kubecon-2017-notes

1
star