diff --git a/README.md b/README.md index 1b2cbaa..40c7fb6 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,26 @@ I don't have an `OS X` system to build the executable! So I would love for a Pul [Building from source will do the trick though](https://github.com/prodicus/spaceShooter#os-x) + +```bash +$ pip3 install hg+http://bitbucket.org/pygame/pygame +``` + +Install Pygame specific dependencies + +```bash +$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis +$ brew install sdl_mixer --with-libvorbis +``` + +##### Clone the repo + +```bash +$ git clone https://github.com/prodicus/spaceShooter.git +$ cd spaceShooter/ +$ python spaceShooter.py +``` + ### `Linux/Debian` based systems #### Option 1: Download the zipped executable file @@ -61,8 +81,9 @@ 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 ```bash -$ unzip SpaceShooter-0.0.1.Linux.zip -d ~/Desktop +$ unzip ~/Downloads/SpaceShooter-0.0.1.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 ``` @@ -90,19 +111,6 @@ You need to have `pygame` installed for this option. $ sudo apt-get install python-pygame ``` -##### OS X - -```bash -$ pip3 install hg+http://bitbucket.org/pygame/pygame -``` - -Install Pygame specific dependencies - -```bash -$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis -$ brew install sdl_mixer --with-libvorbis -``` - ##### Clone the repo ```bash diff --git a/spaceShooter.py b/spaceShooter.py index e715f30..a784b14 100644 --- a/spaceShooter.py +++ b/spaceShooter.py @@ -4,12 +4,12 @@ # @Date: 2016-01-17 # @Email: prodicus@outlook.com Github username: @prodicus # @Last Modified by: tasdik -# @Last Modified time: 2016-01-18 +# @Last Modified time: 2016-01-20 # MIT License. You can find a copy of the License @ http://prodicus.mit-license.org ## Game music Attribution ##Frozen Jam by tgfcoder licensed under CC-BY-3 - +from __future__ import division import pygame import random from os import path