Skip to content

maxfish/SpaceMadness

Repository files navigation

SPACE MADNESS

This game was created during Yelp's Hackathon 25. Here's a video:

Space Madness Video

NOTE:

INSTALL

NOTE: these instructions were tested exclusively on MacOS

Install system dependencies and libraries

  • 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 with brew install swig

Download and install code requirements

  • 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

Hardware requirements

  • 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

RUN

$ python game.py
$ python game.py --width=1000 --height=800 (custom width/height)

About

Hackathon project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published