source: nagslang/constants.py@ 336:1d487646a4d4

Last change on this file since 336:1d487646a4d4 was 336:1d487646a4d4, checked in by Jeremy Thurgood <firxen@…>, 9 years ago

Better key handling, form change delay.

File size: 1.3 KB
RevLine 
[10]1SCREEN = (800, 600)
[15]2FPS = 40
[29]3FONT = 'DejaVuSans.ttf'
4FONT_SIZE = 16
5
[13]6DEFAULTS = dict(
7 debug=False,
8 sound=True,
[292]9 music=True,
[13]10)
[81]11
[269]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
[81]18COLLISION_TYPE_OTHER = 0
19COLLISION_TYPE_PLAYER = 1
20COLLISION_TYPE_WALL = 2
21COLLISION_TYPE_SWITCH = 3
[318]22COLLISION_TYPE_FURNITURE = 4
[168]23COLLISION_TYPE_ENEMY = 5
[176]24COLLISION_TYPE_DOOR = 6
[261]25COLLISION_TYPE_PROJECTILE = 7
[265]26COLLISION_TYPE_WEREWOLF_ATTACK = 8
[81]27
[318]28SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_FURNITURE]
[107]29
[186]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,
[318]34 COLLISION_TYPE_FURNITURE,
[186]35 COLLISION_TYPE_ENEMY,
36 COLLISION_TYPE_DOOR,
37]
38
[281]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
[107]46ZORDER_FLOOR = 0
47ZORDER_LOW = 1
48ZORDER_MID = 2
49ZORDER_HIGH = 3
[246]50
51WEREWOLF_SOAK_FACTOR = 10
52PROTAGONIST_HEALTH_MAX_LEVEL = 100
[247]53PROTAGONIST_HEALTH_MIN_LEVEL = 0
[333]54
55BULLET_DAMAGE = 10
56CLAW_DAMAGE = 5
[336]57
58CMD_TOGGLE_FORM = 'toggle_form'
59CMD_ATTACK = 'attack'
60CMD_ACTION = 'action'
Note: See TracBrowser for help on using the repository browser.