-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
44 lines (41 loc) · 953 Bytes
/
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
module.exports = {
animations: {},
spriteSheets: {
slideShowTerminal: {
fileName: "terminal.png",
frameDimensions: {
width: 24,
height: 48,
},
},
},
events: {
onPlayerDidInteract: (self, event, world) => {
if (self === event.target) {
if (event.target.iFramePathName) {
let pathName = event.target.iFramePathName;
if (pathName === "/") {
pathName = "";
}
const url = "http://localhost:3000/" + pathName + "?embedded=true";
world.showOverlayComponent({
key: "iframe",
props: {
url,
backgroundColor: "#06090f",
fontColor: "#5dd463",
borderless: false,
},
});
}
}
},
},
properties: {
sprite: {
defaultFrameIndex: 0,
spriteSheet: "slideShowTerminal",
layers: [],
},
},
};