source: nagslang/constants.py@ 453:12c71124bbca

Last change on this file since 453:12c71124bbca was 448:044b53eb22df, checked in by Stefano Rivera <stefano@…>, 8 years ago

DEBUG: Command line starting area and point

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