Installing the Game Engine
The game engine is built in Python, using the Pygame and NumPy packages.
Pygame is a 32-bit package. You will need a 32-bit version of Python. We use Python 2.7.
Windows
- Install Python (version 2.7.x recommended) https://www.python.org/downloads/
- Install pygame-1.9.2a0.win32-py2.7.msi
- Download NumPy 1.9.1 32-bit for Python 2.7 from http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/
Macintosh OSX 10.7 and above
The following instructions work with the default version of Python bundled with your Mac:
- Install X11 (XQuartz) from http://xquartz.macosforge.org/landing/
- Install pygame-1.9.2pre-py2.7-macosx10.7.mpkg
- Download NumPy 1.9.1 32-bit for Python 2.7 from http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/
Or:
- brew install python
- pip install --upgrade pip setuptools
- pip install pygame
Macintosh OSX above 10.3.9 but below 10.7
- Download the Pygame 1.9.1 installation package from http://www.pygame.org/download.shtml that matches the version of Python installed on your computer.
- Download NumPy 1.9.1 32-bit for Python 2.7 from http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/
Linux Fedora
- sudo yum install numpy
- sudo yum install pygame pygame-devel
In order to run package-manager-downloaded packages, you will need to use the command line /usr/bin/python in the event that you might have multiple versions of Python installed.
Linux Mint
- Get Python 2.7.6
- sudo apt-get install python-pygame
- sudo apt-get install python numpy