Compare commits

...

5 Commits

  1. 2
      .gitignore
  2. 2
      JunkSpace/__main__.py
  3. 2
      JunkSpace/asteroid.py
  4. 26
      README.md

2
.gitignore vendored

@ -1,4 +1,4 @@
__pycache__
*/__pycache__/
venv/
*.pyc

@ -134,7 +134,7 @@ while True:
lose = True
# Win state
if len([s for s in moving if isinstance(s, Asteroid)]) == 0:
if len(asteroids) == 0:
win = True
### Display Logic ###

@ -7,7 +7,7 @@ class Asteroid(Sprite):
SPEED = 2
COLOR = (0,0,255)
BASE_SIZE = 30
N_CHILDREN = 2
N_CHILDREN = 3
def __init__(self, map_rect=None, map_pos=(0,0), velocity=(0, SPEED), size_lev=3):
self.size = size_lev * self.BASE_SIZE

@ -0,0 +1,26 @@
Junk Space
===========
A clone of asteroid with a gameplay tweak that was on my mind.
## Install
Clone the repo then go to the repo folder and type:
```
pip3 install -r requirements.txt
```
## Usage
Go to the repo folder and type:
```
python3 -m JunkSpace
```
- Turn the ship with the mouse
- Fire with left click
- Engage thruster with the space bar
- Reset the game with `r`
- Exit with the Esc key
Loading…
Cancel
Save