-
Notifications
You must be signed in to change notification settings - Fork 9
/
settings.py
53 lines (41 loc) · 1.11 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DEVELOPMENT = True
DATABASE_NAME = 'roguelike.db'
DUNGEON_COLORS = {
'dark_blue_wall': (0, 0, 100),
'dark_gray_wall': (75, 75, 75),
'light_wall': (130, 110, 50),
'dark_ground': (75, 75, 75),
'light_ground': (160, 144, 40),
}
# Create a dictionary that maps keys to vectors.
# Names of the available keys can be found in the online documentation:
# http://packages.python.org/tdl/tdl.event-module.html
KEY_MAPPINGS = {
# standard arrow keys
'UP': [0, -1],
'DOWN': [0, 1],
'LEFT': [-1, 0],
'RIGHT': [1, 0],
# diagonal keys
# keep in mind that the keypad won't use these keys even if
# num-lock is off
'HOME': [-1, -1],
'PAGEUP': [1, -1],
'PAGEDOWN': [1, 1],
'END': [-1, 1],
# number-pad keys
# These keys will always show as KPx regardless if num-lock
# is on or off. Keep in mind that some keyboards and laptops
# may be missing a keypad entirely.
# 7 8 9
# 4 6
# 1 2 3
'KP1': [-1, 1],
'KP2': [0, 1],
'KP3': [1, 1],
'KP4': [-1, 0],
'KP6': [1, 0],
'KP7': [-1, -1],
'KP8': [0, -1],
'KP9': [1, -1],
}