-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.js
More file actions
43 lines (37 loc) · 764 Bytes
/
Constants.js
File metadata and controls
43 lines (37 loc) · 764 Bytes
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
let constantList = function(...values) {
let obj = {};
values.forEach(value => {
obj[value] = value;
})
Object.freeze(obj);
return obj;
}
export const Debug = {
skipIntro: true,
muteMusic: true,
}
Object.freeze(Debug);
export const Duration = {
defaultDuration: 300,
fadeDuration: 300,
timeWarpDuration: 1500,
}
Object.freeze(Duration);
export const PlayerState = {
idle: "idle",
idleLeft: "idleLeft",
idleRight: "idleRight",
walkingLeft: "walkingLeft",
walkingRight: "walkingRight",
talking: "talking",
hurt: "hurt",
}
Object.freeze(PlayerState);
export const TriggerType = {
bring: "bring",
interact: "interact",
sceneEnter: "sceneEnter",
enterLocation: "enterLocation",
leaveLocation: "leaveLocation",
}
Object.freeze(TriggerType);