Giter Club home page Giter Club logo

spaceshooter's Introduction

Space Shooter

The classic retro game recreated using Pygame and python.

Demo

Follow the youtube video to see how I fared on spaceShooter

Space Shooter Demo - Youtube

Screenshots

Screen 1 Screen 2
Screen 3 Screen 4

Game Features

  • 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

  • To move the spaceship
    • To left : left
    • to right : right
  • To fire the bullets : spacebar

Installation

For Windows

  • Download the prebuilt zip file from here and extract the file to your preferred destination by using 7-zip or winzip or any other similar program of your choice.
  • Run the executable named spaceShooter inside the extracted file.

For MAC OS X and 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 SpaceShooter-0.0.1.Linux.zip -d ~/Desktop
$ cd ~/Desktop
~/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.

Ubuntu/Debian
$ sudo apt-get install python-pygame
OS X
$ 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/prodicus/spaceShooter.git
$ cd spaceShooter/ 
$ python spaceShooter.py

NOTE : For OS X. Try running from source if the executable doesn't work.

Enjoy the game!

Known issues

  • The game music doesn't play on OS X as described in #1

Contributers:

To-do:

  • 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 replay the game after all players die

Contributing

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

Issues

You can report the bugs at the issue tracker

License

MIT License © Tasdik Rahman

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

License for them is in Public Domain

spaceshooter's People

Contributors

tasdikrahman avatar prodicus avatar triple-h3lix avatar

Watchers

Subhash Ramesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.