source: nagslang/constants.py@ 281:9b56e954c674

Last change on this file since 281:9b56e954c674 was 281:9b56e954c674, checked in by Jeremy Thurgood <firxen@…>, 8 years ago

Protagonist actions, now required for operating doors.

File size: 1.2 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
38NON_GAME_OBJECT_COLLIDERS = [
39 # These collision types are excluded from action checks, etc.
40 COLLISION_TYPE_WALL,
41 COLLISION_TYPE_PROJECTILE,
42 COLLISION_TYPE_WEREWOLF_ATTACK,
43]
44
45ZORDER_FLOOR = 0
46ZORDER_LOW = 1
47ZORDER_MID = 2
48ZORDER_HIGH = 3
49
50WEREWOLF_SOAK_FACTOR = 10
51PROTAGONIST_HEALTH_MAX_LEVEL = 100
52PROTAGONIST_HEALTH_MIN_LEVEL = 0
Note: See TracBrowser for help on using the repository browser.