Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
added float division support
Browse files Browse the repository at this point in the history
  • Loading branch information
tasdikrahman committed Jan 20, 2016
1 parent 536e107 commit e52d210
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -61,8 +81,9 @@ 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

```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
```
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spaceShooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# @Date: 2016-01-17
# @Email: [email protected] 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 <https://twitter.com/tgfcoder> licensed under CC-BY-3 <http://creativecommons.org/licenses/by/3.0/>

from __future__ import division
import pygame
import random
from os import path
Expand Down

0 comments on commit e52d210

Please sign in to comment.