view gamelib/constants.py @ 111:bb76ce231ff9

Merge changes.
author Simon Cross <hodgestar@gmail.com>
date Wed, 09 May 2012 22:37:49 +0200
parents 50f8476aa929
children 7cd716328a44
line wrap: on
line source

# The usual game constants

WIDTH = 800
HEIGHT = 600
SCREEN = (WIDTH, HEIGHT)
FPS = 30

# Sound related (standard options)
FREQ = 44100
BITSIZE = -16  # unsigned 16 bit
CHANNELS = 2
BUFFER = 1024

# Result codes for UI hints
(MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, NEW_SCIENCE,
        NEW_SCHEMATIC) = range(7)

# Planning to take over the:
MILESTONES = ("basement", "neighbourhood", "city", "world")
M_VALS = dict((name, i) for i, name in enumerate(MILESTONES))