Mercurial > rinkhals
comparison gamelib/constants.py @ 389:463802281182
Add basic level support (level choosing needs work)
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 29 Oct 2009 20:55:37 +0000 |
parents | 403250da36ef |
children | 8104e82afd7a |
comparison
equal
deleted
inserted
replaced
388:c6f0e3e72e86 | 389:463802281182 |
---|---|
22 BITSIZE = -16 # unsigned 16 bit | 22 BITSIZE = -16 # unsigned 16 bit |
23 CHANNELS = 2 # 1 == mono, 2 == stereo | 23 CHANNELS = 2 # 1 == mono, 2 == stereo |
24 BUFFER = 1024 # audio buffer size in no. of samples | 24 BUFFER = 1024 # audio buffer size in no. of samples |
25 FRAMERATE = 30 # how often to check if playback has finished | 25 FRAMERATE = 30 # how often to check if playback has finished |
26 | 26 |
27 # Game constants | 27 # Default values that can be overridden by the levels |
28 | 28 |
29 STARTING_CASH = 1000 | 29 DEFAULT_STARTING_CASH = 1000 |
30 SELL_PRICE_CHICKEN = 10 | 30 DEFAULT_SELL_PRICE_CHICKEN = 10 |
31 SELL_PRICE_EGG = 5 | 31 DEFAULT_SELL_PRICE_EGG = 5 |
32 SELL_PRICE_DEAD_FOX = 15 | 32 DEFAULT_SELL_PRICE_DEAD_FOX = 15 |
33 DEFAULT_TURN_LIMIT = 14 | |
34 DEFAULT_GOAL_DESC = 'Survive for 2 weeks' | |
35 | |
36 DEFAULT_MAX_FOXES = 50 | |
37 | |
38 # Game constants, still to be made configurable | |
39 | |
33 LOGGING_PRICE = 50 | 40 LOGGING_PRICE = 50 |
34 BUY_PRICE_FENCE = 50 | 41 BUY_PRICE_FENCE = 50 |
35 SELL_PRICE_FENCE = 25 | 42 SELL_PRICE_FENCE = 25 |
36 REPAIR_PRICE_FENCE = 25 | 43 REPAIR_PRICE_FENCE = 25 |
37 SELL_PRICE_BROKEN_FENCE = 5 | 44 SELL_PRICE_BROKEN_FENCE = 5 |
45 | |
46 # Toolbar constants | |
38 | 47 |
39 TOOL_SELL_CHICKEN = 1 | 48 TOOL_SELL_CHICKEN = 1 |
40 TOOL_SELL_EGG = 2 | 49 TOOL_SELL_EGG = 2 |
41 TOOL_SELL_BUILDING = 3 | 50 TOOL_SELL_BUILDING = 3 |
42 TOOL_REPAIR_BUILDING = 4 | 51 TOOL_REPAIR_BUILDING = 4 |
44 TOOL_LOGGING = 6 | 53 TOOL_LOGGING = 6 |
45 TOOL_SELL_EQUIPMENT = 7 | 54 TOOL_SELL_EQUIPMENT = 7 |
46 | 55 |
47 NIGHT_LENGTH = 150 | 56 NIGHT_LENGTH = 150 |
48 | 57 |
49 TURN_LIMITS = { | |
50 'Two weeks' : 14, | |
51 'Three months' : 90, | |
52 'Unlimited' : 0, | |
53 } | |
54 | 58 |
55 DEFAULT_MODE = 'Two weeks' | |
56 | |
57 ABS_MAX_NUM_FOXES = 50 # Limit possible uppoer number of foxes, due to concerns | |
58 # about performance, etc. |