Posted on July 20, 2015 by orbital

In this Mission Control, we learn how to build a game from the ground up in Python (which you already know!), with a focus on setting up the basic infrastructure of a game.  This workshop will be interactive, so please bring your laptops, and try to get PyGame installed and working in your laptops before the session (Setting up PyGame can be a bit of a pain, but it is a one-time thing).

Presenter: Oh Shunhao (NUS Games Development Group)
Venue: SoC SR3
Time: 18:00-20:00
Date: 22 Jul 2015

PyGame Setup instructions

Windows: Python 2.7 – download binary here []

Python 3.4 – download binary here []

Mac: Follow instructions here []

(From what I hear, it seems to be easier to setup for python 2.7. Also recommend installing brew first)

Unix: Haven’t really tried. Try looking here []

To verify that PyGame is working correctly, run this script in python:


Same as below:

# If the test works, you should see a blue circle moving around the screen.
import pygame
screen = pygame.display.set_mode((480,360))
x = 0
y = 0
while True:
    x = (x + 10) % 480
    y = (y + 10) % 360    
    screen.fill((0,0,0)), (0, 127, 255), (x, y), 25)

Comments are closed.