Mercurial > sypikslang
view gamelib/constants.py @ 125:c224057befff
put 'End Turn' & 'Next Turn' buttons in the same place. Move 'Exit' button away from the action
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 10 May 2012 12:19:29 +0200 |
parents | 7cd716328a44 |
children | 14917385a0fd |
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, NEW_MILESTONE) = range(8) # Planning to take over the: MILESTONES = ("basement", "neighbourhood", "city", "world") M_VALS = dict((name, i) for i, name in enumerate(MILESTONES))