This game was created during Yelp's Hackathon 25. Here's a video:
NOTE:
- Part of the game assets are coming from the Space Game Art Pack - extended made by Tatermand (CC)
- Astronauts assets are coming from androidarts.com made by Niklas Jansson - As they are not licenced properly, we will actually replace them. (But he does great work!)
NOTE: these instructions were tested exclusively on MacOS
- Install the support for the XBOX360 controllers following the instructions here
- Download SDL2 from this download page
- The installer contains
SDL2.Framework
inside. Move it to/Library/Frameworks
- Make sure you have python 3.6 installed. See the official download page (or use
brew
) - Install
swig
withbrew install swig
- Clone SpaceMadness repo: git clone git@github.com:maxfish/SpaceMadness.git
- cd
SpaceMadness
- Create a new virtualenv:
python3.6 -m venv venv
- Activate it:
venv/bin/activate
- Get
pybox2d
by cloning it (git clone https://github.com/pybox2d/pybox2d) or downloading it (curl -o pybox2d.zip https://codeload.github.com/pybox2d/pybox2d/zip/master && unzip pybox2d.zip
) within the game folder - Build
pybox2d
:cd pybox2d-master && python setup.py build && python setup.py develop && cd ..
- Install the requirements:
pip install -r requirements.txt
- OpenGL: The game requires OpenGL v4.1 (core profile)
- Joysticks: You will need 3 joypads to control each single ship. The joysticks handling is done via SDL2 but right now only XBox360 and PS4 controller are supported. To support more joysticks models, or another OS, please have a look at the SDL2 database here: https://github.com/gabomdq/SDL_GameControllerDB
$ python game.py
$ python game.py --width=1000 --height=800 (custom width/height)