source: nagslang/constants.py@ 454:803d53c86f7f

Last change on this file since 454:803d53c86f7f was 454:803d53c86f7f, checked in by Stefano Rivera <stefano@…>, 8 years ago

Don't show debugging shapes by default in DEBUG mode

File size: 1.5 KB
Line 
1SCREEN = (800, 600)
2FPS = 40
3FONT = 'DejaVuSans.ttf'
4FONT_SIZE = 16
5
6DEFAULTS = dict(
7 debug=False,
8 shapes=False,
9
10 sound=True,
11 music=True,
12 # Debug starting position:
13 area=None,
14 point=None,
15)
16
17# Sound constants
18FREQ = 44100 # same as audio CD
19BITSIZE = -16 # unsigned 16 bit
20CHANNELS = 2 # 1 == mono, 2 == stereo
21BUFFER = 1024 # audio buffer size in no. of samples
22
23COLLISION_TYPE_OTHER = 0
24COLLISION_TYPE_PLAYER = 1
25COLLISION_TYPE_WALL = 2
26COLLISION_TYPE_SWITCH = 3
27COLLISION_TYPE_FURNITURE = 4
28COLLISION_TYPE_ENEMY = 5
29COLLISION_TYPE_DOOR = 6
30COLLISION_TYPE_PROJECTILE = 7
31COLLISION_TYPE_WEREWOLF_ATTACK = 8
32COLLISION_TYPE_SHEEP = 9
33COLLISION_TYPE_SHEEP_PEN = 10
34
35SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_FURNITURE]
36
37CALLBACK_COLLIDERS = [
38 # Collisions between the player and shapes with these collision types will
39 # fire callbacks on the game object associated with the shape.
40 COLLISION_TYPE_SWITCH,
41 COLLISION_TYPE_FURNITURE,
42 COLLISION_TYPE_ENEMY,
43 COLLISION_TYPE_DOOR,
44 COLLISION_TYPE_SHEEP,
45]
46
47NON_GAME_OBJECT_COLLIDERS = [
48 # These collision types are excluded from action checks, etc.
49 COLLISION_TYPE_WALL,
50 COLLISION_TYPE_PROJECTILE,
51 COLLISION_TYPE_WEREWOLF_ATTACK,
52]
53
54ZORDER_FLOOR = 0
55ZORDER_LOW = 1
56ZORDER_MID = 2
57ZORDER_HIGH = 3
58
59WEREWOLF_SOAK_FACTOR = 10
60PROTAGONIST_HEALTH_MAX_LEVEL = 100
61PROTAGONIST_HEALTH_MIN_LEVEL = 0
62
63BULLET_DAMAGE = 10
64CLAW_DAMAGE = 5
65ACID_DAMAGE = 7
66
67BULLET_SPEED = 1000
68ACID_SPEED = 300
69
70CMD_TOGGLE_FORM = 'toggle_form'
71CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.