-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
99 lines (85 loc) · 1.62 KB
/
config.js
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
const DEV = true
const SEE_EVERYTHING = false
const ZOOM_GAME = 3
const ZOOM_UI = 1
let ROT_SEED = 13
const ANIMATION_TYPE = {
COLOR: "Color",
MOVE: "Move",
SHAKE: "Shake"
}
const ACTION_TYPE = {
OPEN_DOOR: "open_door",
ATTACK_MELEE: "attack_melee"
}
const TILESET = {
PLAYER: 0,
MONSTER: 1,
WALL: 3,
FLOOR: 4,
DOOR_CLOSED: 5,
DOOR_OPEN: 6,
UI_PANEL_TOP_LEFT: 7,
UI_PANEL_TOP: 8,
UI_PANEL_TOP_RIGHT: 9,
UI_PANEL_LEFT: 10,
UI_PANEL_EMPTY: 11,
UI_PANEL_RIGHT: 12,
UI_PANEL_BOTTOM_LEFT: 13,
UI_PANEL_BOTTOM: 14,
UI_PANEL_BOTTOM_RIGHT: 15,
MOUSE_POINTER: 16,
MONSTER_DEAD: 17
}
const TILE_TYPE = {
DOOR_CLOSED: "door_closed",
DOOR_OPEN: "door_open",
WALL: "wall",
FLOOR: "floor"
}
const TINTS = {
VISITED: "#1c1c1c",
VISIBLE: "#ffffff",
HIDDEN: "#000000",
MONSTER: "#f20707",
POINTER: "#02ff00"
}
const GAME_STATE = {
START: 'Start',
WAIT_FOR_INPUT: 'Wait for player input',
PROCESS_INPUT: 'Process input',
PROCESS_AI: 'Process AI',
ANIMATING: 'Animating sprites'
}
const MONSTER_STATE = {
WANDERING: "Wandering",
SEEKING: "Seeking",
ESCAPING: "Escaping"
}
const TILE_SIZE = 16
const DIRECTIONS = {
LEFT: 'Left',
RIGHT: 'Right',
TOP: 'Top',
BOTTOM: 'Bottom'
}
const MOVE_DURATION = 10
const DISPLAY_DURATION = 40
export {
ACTION_TYPE,
ANIMATION_TYPE,
DEV,
DIRECTIONS,
DISPLAY_DURATION,
GAME_STATE,
MONSTER_STATE,
MOVE_DURATION,
ROT_SEED,
SEE_EVERYTHING,
TILE_SIZE,
TILE_TYPE,
TILESET,
TINTS,
ZOOM_GAME,
ZOOM_UI
}