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

  1. Install Python (version 2.7.x recommended) https://www.python.org/downloads/
  2. Install pygame-1.9.2a0.win32-py2.7.msi
  3. 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:

  1. Install X11 (XQuartz) from http://xquartz.macosforge.org/landing/
  2. Install pygame-1.9.2pre-py2.7-macosx10.7.mpkg
  3. Download NumPy 1.9.1 32-bit for Python 2.7 from http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/

Or:

  1. brew install python
  2. pip install --upgrade pip setuptools
  3. pip install pygame

Macintosh OSX above 10.3.9 but below 10.7

  1. 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.
  2. Download NumPy 1.9.1 32-bit for Python 2.7 from http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/

Linux Fedora

  1. sudo yum install numpy
  2. 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

  1. Get Python 2.7.6
  2. sudo apt-get install python-pygame
  3. sudo apt-get install python numpy