Mercurial > rinkhals
view gamelib/constants.py @ 486:8897a436a8cb
Factor out save game logic and (new, simplified) dialogs into their own module. Add preferences folder to concept to config. Save games under preferences folder.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 21:50:54 +0000 |
parents | f04a2490c35f |
children | 45e03793d41e |
line wrap: on
line source
"""Operation Fox Assault constants.""" # Project metadata NAME = "Operation Fox Assault" AUTHORS = [ ("Adrianna Pinska", "adrianna.pinska@gmail.com"), ("Jeremy Thurgood", "firxen+rinkhals@gmail.com"), ("Neil Muller", ""), ("Simon Cross", "hodgestar+rinkhals@gmail.com"), ] # GUI constants SCREEN = (800, 600) FG_COLOR = (255, 255, 255) PREDATOR_COUNT_COLOR = (255, 100, 0) # Approximately fox coloured BG_COLOR = (0, 0, 0) # Mixer constants FREQ = 44100 # same as audio CD BITSIZE = -16 # unsigned 16 bit CHANNELS = 2 # 1 == mono, 2 == stereo BUFFER = 1024 # audio buffer size in no. of samples FRAMERATE = 30 # how often to check if playback has finished # Default values that can be overridden by the levels DEFAULT_STARTING_CASH = 1000 DEFAULT_STARTING_WOOD = 0 DEFAULT_SELL_PRICE_CHICKEN = 10 DEFAULT_SELL_PRICE_EGG = 5 DEFAULT_SELL_PRICE_DEAD_FOX = 15 DEFAULT_TURN_LIMIT = 14 DEFAULT_GOAL_DESC = 'Survive for 2 weeks' DEFAULT_MAX_FOXES = 50 # Game constants, still to be made configurable LOGGING_PRICE = 50 WOODLAND_CONCEALMENT = 10 # Toolbar constants TOOL_SELECT_CHICKENS = 1 TOOL_SELL_CHICKEN = 2 TOOL_SELL_EGG = 3 TOOL_SELL_BUILDING = 4 TOOL_REPAIR_BUILDING = 5 TOOL_PLACE_ANIMALS = 6 TOOL_LOGGING = 7 TOOL_SELL_EQUIPMENT = 8 TOOL_BUY_BUILDING = 9 TOOL_BUY_EQUIPMENT = 10 NIGHT_LENGTH = 150 TILE_DIMENSIONS = (20, 20) TOOLBAR_WIDTH = 140