view gamelib/constants.py @ 144:221c340f5efd

Rename run_visualization.py to visualize.py to stop it getting in the way of tab-completing run_game.py.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 11 May 2012 10:15:40 +0200
parents 821ecb98e888
children 3d24b18d1785
line wrap: on
line source

# The usual game constants

WIDTH = 1024
HEIGHT = 768
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, INFO) = range(6)

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