source: nagslang/constants.py@ 293:47226c661ae2

Last change on this file since 293:47226c661ae2 was 292:7b121ed73b95, checked in by Jeremy Thurgood <firxen@…>, 8 years ago

--no-music flag.

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 music=True,
10)
11
12# Sound constants
13FREQ = 44100 # same as audio CD
14BITSIZE = -16 # unsigned 16 bit
15CHANNELS = 2 # 1 == mono, 2 == stereo
16BUFFER = 1024 # audio buffer size in no. of samples
17
18COLLISION_TYPE_OTHER = 0
19COLLISION_TYPE_PLAYER = 1
20COLLISION_TYPE_WALL = 2
21COLLISION_TYPE_SWITCH = 3
22COLLISION_TYPE_BOX = 4
23COLLISION_TYPE_ENEMY = 5
24COLLISION_TYPE_DOOR = 6
25COLLISION_TYPE_PROJECTILE = 7
26COLLISION_TYPE_WEREWOLF_ATTACK = 8
27
28SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_BOX]
29
30CALLBACK_COLLIDERS = [
31 # Collisions between the player and shapes with these collision types will
32 # fire callbacks on the game object associated with the shape.
33 COLLISION_TYPE_SWITCH,
34 COLLISION_TYPE_BOX,
35 COLLISION_TYPE_ENEMY,
36 COLLISION_TYPE_DOOR,
37]
38
39NON_GAME_OBJECT_COLLIDERS = [
40 # These collision types are excluded from action checks, etc.
41 COLLISION_TYPE_WALL,
42 COLLISION_TYPE_PROJECTILE,
43 COLLISION_TYPE_WEREWOLF_ATTACK,
44]
45
46ZORDER_FLOOR = 0
47ZORDER_LOW = 1
48ZORDER_MID = 2
49ZORDER_HIGH = 3
50
51WEREWOLF_SOAK_FACTOR = 10
52PROTAGONIST_HEALTH_MAX_LEVEL = 100
53PROTAGONIST_HEALTH_MIN_LEVEL = 0
Note: See TracBrowser for help on using the repository browser.