/
sandbox.json
38 lines (35 loc) · 1.35 KB
/
sandbox.json
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
{
screen: {
width: window.innerWidth,
height: window.innerHeight
},
"level0": {
entities: [
[
{
componentName: "Sprite",
componentData: { fileName: "textures/testbox2.png" }
},
{
componentName: "Transform",
componentData: { x: -50, y: -50, width: 100, height: 100, angle: 0 }
},
componentName: "Collider",
componentData: [
{ type: "CT_WORLD", width: 100, height: 100, offsetx: 0, offsety: 0 }
]
}
],
[
{
componentName: "Sprite",
componentData: { fileName: "textures/testbox2.png" }
},
{
componentName: "Transform",
componentData: { x: 50, y: 50, width: 100, height: 100, angle: 0 }
}
]
]
}
}