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

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

Bigger gun

File size: 1.6 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
[598]22DEFAULT_SOUND_VOLUME = 1.0 # sound volume
23DEFAULT_MUSIC_VOLUME = 0.3 # music volume
[269]24
[81]25COLLISION_TYPE_OTHER = 0
26COLLISION_TYPE_PLAYER = 1
27COLLISION_TYPE_WALL = 2
28COLLISION_TYPE_SWITCH = 3
[318]29COLLISION_TYPE_FURNITURE = 4
[168]30COLLISION_TYPE_ENEMY = 5
[176]31COLLISION_TYPE_DOOR = 6
[261]32COLLISION_TYPE_PROJECTILE = 7
[265]33COLLISION_TYPE_WEREWOLF_ATTACK = 8
[410]34COLLISION_TYPE_SHEEP = 9
[444]35COLLISION_TYPE_SHEEP_PEN = 10
[81]36
[318]37SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_FURNITURE]
[107]38
[186]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,
[318]43 COLLISION_TYPE_FURNITURE,
[186]44 COLLISION_TYPE_ENEMY,
45 COLLISION_TYPE_DOOR,
[410]46 COLLISION_TYPE_SHEEP,
[186]47]
48
[281]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
[107]56ZORDER_FLOOR = 0
57ZORDER_LOW = 1
58ZORDER_MID = 2
59ZORDER_HIGH = 3
[246]60
61WEREWOLF_SOAK_FACTOR = 10
62PROTAGONIST_HEALTH_MAX_LEVEL = 100
[247]63PROTAGONIST_HEALTH_MIN_LEVEL = 0
[333]64
[607]65BULLET_DAMAGE = 25
[333]66CLAW_DAMAGE = 5
[361]67ACID_DAMAGE = 7
68
69BULLET_SPEED = 1000
70ACID_SPEED = 300
[336]71
72CMD_TOGGLE_FORM = 'toggle_form'
73CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.