Mercurial > rinkhals
comparison gamelib/constants.py @ 90:23a8b2e49e9f
Added ability to initialize sound and play sounds, and handle sound not working / file being missing etc
author | David Fraser <davidf@sjsoft.com> |
---|---|
date | Wed, 02 Sep 2009 10:34:22 +0000 |
parents | ad9d1bc7ef0c |
children | 7910b4e01dba |
comparison
equal
deleted
inserted
replaced
89:c0455e6c99f4 | 90:23a8b2e49e9f |
---|---|
15 | 15 |
16 SCREEN = (800, 600) | 16 SCREEN = (800, 600) |
17 FG_COLOR = (255, 255, 255) | 17 FG_COLOR = (255, 255, 255) |
18 BG_COLOR = (0, 0, 0) | 18 BG_COLOR = (0, 0, 0) |
19 | 19 |
20 # Mixer constants | |
21 FREQ = 44100 # same as audio CD | |
22 BITSIZE = -16 # unsigned 16 bit | |
23 CHANNELS = 2 # 1 == mono, 2 == stereo | |
24 BUFFER = 1024 # audio buffer size in no. of samples | |
25 FRAMERATE = 30 # how often to check if playback has finished | |
26 | |
20 # Game constants | 27 # Game constants |
21 | 28 |
22 STARTING_CASH = 1000 | 29 STARTING_CASH = 1000 |
23 SELL_PRICE_CHICKEN = 10 | 30 SELL_PRICE_CHICKEN = 10 |
24 SELL_PRICE_DEAD_FOX = 5 | 31 SELL_PRICE_DEAD_FOX = 5 |