-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
71 lines (53 loc) · 2.04 KB
/
config.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
DATA_DIR = "."
TITLE = "Puzzle Dungeon"
FPS = 30
DEBUG_LEVEL = 1 # 0 means no debug at all, 2 means more verbose
MIN_ENEMY_HEALTH = 5
MAX_ENEMY_HEALTH = 15
MIN_ENEMY_ATTACK = 5
MAX_ENEMY_ATTACK = 10
#INITIAL_CHAR_HEALTH = 100
INITIAL_CHAR_ATTACK = 5
BONUS_HEALTH_VALUE = 7
BONUS_ATTACK_VALUE = 7
EMPTY_FLOOR_FREQUENCY = 3 # 0 means empty floor is as frequent as non empty
ARROW_KEYS_RESOLUTION = 0.18
ALLOW_DIAGONAL_MOVES = True
CRITICAL_REMAINING_LEVEL_TIME = 20
AUTOGENERATION_IDLE_TIME = 30
AUTOGENERATION_NEXT_TIME = 5
AUTOGENERATION_HEALTH = 2
CHAR_APPEARANCE_SCALE_DURATION = 1
ENEMY_BEAT_ANIMATION_TIME = 0.4
ENEMY_BEAT_OFFSET = 12
WIN_NEW_DELAY = 1.5
LEVEL_TITLE_TIME = 4
LEVEL_GOAL_TIME = 3
ENEMY_KILL_ANIMATION_TIME = 0.5
ENEMY_KILL_DELAY = 0.1
STATUS_MESSAGE2_FADE_DURATION = 1.5
STATUS_MESSAGE2_REST_DURATION = 0.5
MAIN_COLOR_RGB_VALUES = ((255, 80, 80), (80, 255, 80), (80, 80, 255), (255, 255, 80), (255, 80, 255), (80, 255, 255))
MORE_COLOR_RGB_VALUES = ((228, 160, 80), (80, 228, 160), (160, 80, 228), (80, 80, 80), (160, 160, 160), (228, 228, 228), (160, 228, 80), (228, 80, 160), (80, 160, 228))
EXTENDED_COLOR_RGB_VALUES = (*MAIN_COLOR_RGB_VALUES, *MORE_COLOR_RGB_VALUES)
CHAR_POWER_COLORS = ("#6060FF", "#3030AA", "#FFFFC0")
ENEMY_POWER_COLORS = ("#FF6060", "#AA3030", "#401010")
ACTOR_HEALTH_COLORS = ("#AAFF00", "#66AA00", "#404030")
ACTOR_ATTACK_COLORS = ("#FFAA00", "#AA6600", "#404030")
DROP_FACTOR_COLORS = ("#3030FF", "#2020AA", "#FFFFFF")
MEMORY_PUZZLE_OPEN_CELL2_TIME = 1
MEMORY_PUZZLE_REVEAL_FADE_DURATION = 1.5
MEMORY_PUZZLE_CHAR_OPACITY = 0.4
FIFTEEN_PUZZLE_MOVE_NEIGHBOUR_ONLY = False
BARREL_PUZZLE_SOLUTION_MOVE_DELAY = max(0.32, ARROW_KEYS_RESOLUTION)
DEFAULT_NUM_ENEMIES = 5
DEFAULT_NUM_BARRELS = 4
DEFAULT_NUM_GATE_PUZZLE_GATES = 5
DEFAULT_NUM_GATE_PUZZLE_PLATES = 3
MIN_GATE_PUZZLE_ATTACHED_GATES = 1
MAX_GATE_PUZZLE_ATTACHED_GATES = 4
DEFAULT_HERO_PUZZLE_SIZE = (5, 9)
# this controls status drop drawing; counted in cell widths
STATUS_DROP_X_SIZE = 1.4
STATUS_DROP_X_ACTOR_OFFSET = -0.3
STATUS_DROP_X_TEXT_OFFSET = +0.3