Last change
on this file since 186:d63c19003aec was 186:d63c19003aec, checked in by Jeremy Thurgood <firxen@…>, 9 years ago |
Some refactoring and fixing, start of better collision handling.
|
File size:
695 bytes
|
Line | |
---|
1 | SCREEN = (800, 600)
|
---|
2 | FPS = 40
|
---|
3 | FONT = 'DejaVuSans.ttf'
|
---|
4 | FONT_SIZE = 16
|
---|
5 |
|
---|
6 | DEFAULTS = dict(
|
---|
7 | debug=False,
|
---|
8 | sound=True,
|
---|
9 | )
|
---|
10 |
|
---|
11 | COLLISION_TYPE_OTHER = 0
|
---|
12 | COLLISION_TYPE_PLAYER = 1
|
---|
13 | COLLISION_TYPE_WALL = 2
|
---|
14 | COLLISION_TYPE_SWITCH = 3
|
---|
15 | COLLISION_TYPE_BOX = 4
|
---|
16 | COLLISION_TYPE_ENEMY = 5
|
---|
17 | COLLISION_TYPE_DOOR = 6
|
---|
18 |
|
---|
19 | SWITCH_PUSHERS = [COLLISION_TYPE_PLAYER, COLLISION_TYPE_BOX]
|
---|
20 |
|
---|
21 | CALLBACK_COLLIDERS = [
|
---|
22 | # Collisions between the player and shapes with these collision types will
|
---|
23 | # fire callbacks on the game object associated with the shape.
|
---|
24 | COLLISION_TYPE_SWITCH,
|
---|
25 | COLLISION_TYPE_BOX,
|
---|
26 | COLLISION_TYPE_ENEMY,
|
---|
27 | COLLISION_TYPE_DOOR,
|
---|
28 | ]
|
---|
29 |
|
---|
30 | ZORDER_FLOOR = 0
|
---|
31 | ZORDER_LOW = 1
|
---|
32 | ZORDER_MID = 2
|
---|
33 | ZORDER_HIGH = 3
|
---|
Note:
See
TracBrowser
for help on using the repository browser.