source: nagslang/constants.py@ 269:9fcdb106424a

Last change on this file since 269:9fcdb106424a was 269:9fcdb106424a, checked in by Simon Cross <hodgestar@…>, 8 years ago

Add first draft of sound support.

File size: 1.0 KB
Line 
1SCREEN = (800, 600)
2FPS = 40
3FONT = 'DejaVuSans.ttf'
4FONT_SIZE = 16
5
6DEFAULTS = dict(
7 debug=False,
8 sound=True,
9)
10
11# Sound constants
12FREQ = 44100 # same as audio CD
13BITSIZE = -16 # unsigned 16 bit
14CHANNELS = 2 # 1 == mono, 2 == stereo
15BUFFER = 1024 # audio buffer size in no. of samples
16
17COLLISION_TYPE_OTHER = 0
18COLLISION_TYPE_PLAYER = 1
19COLLISION_TYPE_WALL = 2
20COLLISION_TYPE_SWITCH = 3
21COLLISION_TYPE_BOX = 4
22COLLISION_TYPE_ENEMY = 5
23COLLISION_TYPE_DOOR = 6
24COLLISION_TYPE_PROJECTILE = 7
25COLLISION_TYPE_WEREWOLF_ATTACK = 8
26
27SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_BOX]
28
29CALLBACK_COLLIDERS = [
30 # Collisions between the player and shapes with these collision types will
31 # fire callbacks on the game object associated with the shape.
32 COLLISION_TYPE_SWITCH,
33 COLLISION_TYPE_BOX,
34 COLLISION_TYPE_ENEMY,
35 COLLISION_TYPE_DOOR,
36]
37
38ZORDER_FLOOR = 0
39ZORDER_LOW = 1
40ZORDER_MID = 2
41ZORDER_HIGH = 3
42
43WEREWOLF_SOAK_FACTOR = 10
44PROTAGONIST_HEALTH_MAX_LEVEL = 100
45PROTAGONIST_HEALTH_MIN_LEVEL = 0
Note: See TracBrowser for help on using the repository browser.