source: nagslang/constants.py @ 401:f7ee43c0e5c9

Last change on this file since 401:f7ee43c0e5c9 was 371:21c1c329f8e3, checked in by Jeremy Thurgood <firxen@…>, 7 years ago

Automatic weapons.

File size: 1.4 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_FURNITURE = 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_FURNITURE]
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_FURNITURE,
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
54
55BULLET_DAMAGE = 10
56CLAW_DAMAGE = 5
57ACID_DAMAGE = 7
58
59BULLET_SPEED = 1000
60ACID_SPEED = 300
61
62CMD_TOGGLE_FORM = 'toggle_form'
63CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.