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
RevLine 
[10]1SCREEN = (800, 600)
[15]2FPS = 40
[29]3FONT = 'DejaVuSans.ttf'
4FONT_SIZE = 16
5
[13]6DEFAULTS = dict(
7 debug=False,
[454]8 shapes=False,
9
[13]10 sound=True,
[292]11 music=True,
[448]12 # Debug starting position:
13 area=None,
14 point=None,
[13]15)
[81]16
[269]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
[81]23COLLISION_TYPE_OTHER = 0
24COLLISION_TYPE_PLAYER = 1
25COLLISION_TYPE_WALL = 2
26COLLISION_TYPE_SWITCH = 3
[318]27COLLISION_TYPE_FURNITURE = 4
[168]28COLLISION_TYPE_ENEMY = 5
[176]29COLLISION_TYPE_DOOR = 6
[261]30COLLISION_TYPE_PROJECTILE = 7
[265]31COLLISION_TYPE_WEREWOLF_ATTACK = 8
[410]32COLLISION_TYPE_SHEEP = 9
[444]33COLLISION_TYPE_SHEEP_PEN = 10
[81]34
[318]35SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_FURNITURE]
[107]36
[186]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,
[318]41 COLLISION_TYPE_FURNITURE,
[186]42 COLLISION_TYPE_ENEMY,
43 COLLISION_TYPE_DOOR,
[410]44 COLLISION_TYPE_SHEEP,
[186]45]
46
[281]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
[107]54ZORDER_FLOOR = 0
55ZORDER_LOW = 1
56ZORDER_MID = 2
57ZORDER_HIGH = 3
[246]58
59WEREWOLF_SOAK_FACTOR = 10
60PROTAGONIST_HEALTH_MAX_LEVEL = 100
[247]61PROTAGONIST_HEALTH_MIN_LEVEL = 0
[333]62
63BULLET_DAMAGE = 10
64CLAW_DAMAGE = 5
[361]65ACID_DAMAGE = 7
66
67BULLET_SPEED = 1000
68ACID_SPEED = 300
[336]69
70CMD_TOGGLE_FORM = 'toggle_form'
71CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.