forked from jpalladino84/Python-Roguelike-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
68 lines (49 loc) · 1.34 KB
/
settings.py
File metadata and controls
68 lines (49 loc) · 1.34 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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],
}
class Colors:
BLACK_COLOR = (0, 0, 0)
WHITE_COLOR = (255, 255, 255)
DARK_BLUE = (0, 0, 100)
DARK_GRAY = (75, 75, 75)
TROLL_GREEN = (100, 180, 150)
ORC_GREEN = (150, 250, 230)
BLOOD_RED = (255, 50, 50)