source: nagslang/constants.py@ 607:29ced8b56895

Last change on this file since 607:29ced8b56895 was 607:29ced8b56895, checked in by Stefano Rivera <stefano@…>, 8 years ago

Bigger gun

File size: 1.6 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
22DEFAULT_SOUND_VOLUME = 1.0 # sound volume
23DEFAULT_MUSIC_VOLUME = 0.3 # music volume
24
25COLLISION_TYPE_OTHER = 0
26COLLISION_TYPE_PLAYER = 1
27COLLISION_TYPE_WALL = 2
28COLLISION_TYPE_SWITCH = 3
29COLLISION_TYPE_FURNITURE = 4
30COLLISION_TYPE_ENEMY = 5
31COLLISION_TYPE_DOOR = 6
32COLLISION_TYPE_PROJECTILE = 7
33COLLISION_TYPE_WEREWOLF_ATTACK = 8
34COLLISION_TYPE_SHEEP = 9
35COLLISION_TYPE_SHEEP_PEN = 10
36
37SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_FURNITURE]
38
39CALLBACK_COLLIDERS = [
40 # Collisions between the player and shapes with these collision types will
41 # fire callbacks on the game object associated with the shape.
42 COLLISION_TYPE_SWITCH,
43 COLLISION_TYPE_FURNITURE,
44 COLLISION_TYPE_ENEMY,
45 COLLISION_TYPE_DOOR,
46 COLLISION_TYPE_SHEEP,
47]
48
49NON_GAME_OBJECT_COLLIDERS = [
50 # These collision types are excluded from action checks, etc.
51 COLLISION_TYPE_WALL,
52 COLLISION_TYPE_PROJECTILE,
53 COLLISION_TYPE_WEREWOLF_ATTACK,
54]
55
56ZORDER_FLOOR = 0
57ZORDER_LOW = 1
58ZORDER_MID = 2
59ZORDER_HIGH = 3
60
61WEREWOLF_SOAK_FACTOR = 10
62PROTAGONIST_HEALTH_MAX_LEVEL = 100
63PROTAGONIST_HEALTH_MIN_LEVEL = 0
64
65BULLET_DAMAGE = 25
66CLAW_DAMAGE = 5
67ACID_DAMAGE = 7
68
69BULLET_SPEED = 1000
70ACID_SPEED = 300
71
72CMD_TOGGLE_FORM = 'toggle_form'
73CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.