REPOSITORY SOURCE

prefab-kit.json

games/engine-zoo/prefab-kit.json

1{
2  "format": 1,
3  "world": {
4    "entry": "motor",
5    "format": 2,
6    "id": "engine-zoo",
7    "places": [
8      {
9        "ambient": [
10          0.17,
11          0.21,
12          0.19
13        ],
14        "facing": 0,
15        "fog": [
16          0.065,
17          0.09,
18          0.08
19        ],
20        "fogDensity": 0.025,
21        "id": "motor",
22        "interactions": [],
23        "lights": [
24          {
25            "position": [
26              0,
27              2.55,
28              -3.6
29            ],
30            "color": [
31              1,
32              0.59,
33              0.25
34            ],
35            "intensity": 5
36          }
37        ],
38        "name": "Motor fixture",
39        "objects": [
40          {
41            "collider": true,
42            "id": "floor",
43            "material": {
44              "color": [
45                0.23,
46                0.26,
47                0.21
48              ],
49              "roughness": 0.95
50            },
51            "mesh": "box",
52            "position": [
53              0,
54              -0.2,
55              0
56            ],
57            "scale": [
58              20,
59              0.4,
60              20
61            ],
62            "entityId": "authored:1140af997d05c3cf7a7cc2fa999131595ae07cfc834cd1394ebbc79b60c7253e"
63          }
64        ],
65        "spawn": [
66          0,
67          0.85,
68          3
69        ],
70        "subtitle": "Headless character acceptance",
71        "sun": [
72          -0.5,
73          0.8,
74          0.4
75        ],
76        "sunIntensity": 0.9,
77        "shadowLight": 0
78      },
79      {
80        "ambient": [
81          0.3,
82          0.3,
83          0.3
84        ],
85        "facing": 0,
86        "fog": [
87          0.2,
88          0.2,
89          0.2
90        ],
91        "fogDensity": 0.01,
92        "id": "annex",
93        "interactions": [],
94        "lights": [],
95        "name": "Lantern annex",
96        "objects": [],
97        "spawn": [
98          0,
99          0.85,
100          3
101        ],
102        "subtitle": "Headless character acceptance",
103        "sun": [
104          1,
105          1,
106          1
107        ],
108        "sunIntensity": 1
109      }
110    ],
111    "release": "motor.1"
112  },
113  "prefabs": [
114    {
115      "id": "stone-arch",
116      "members": [
117        {
118          "key": "left",
119          "patch": {
120            "mesh": "box",
121            "position": [
122              -1.6,
123              1.5,
124              0
125            ],
126            "scale": [
127              0.5,
128              3,
129              0.6
130            ],
131            "material": {
132              "color": [
133                0.38,
134                0.32,
135                0.25
136              ],
137              "roughness": 0.9
138            },
139            "collider": true
140          }
141        },
142        {
143          "key": "right",
144          "patch": {
145            "mesh": "box",
146            "position": [
147              1.6,
148              1.5,
149              0
150            ],
151            "scale": [
152              0.5,
153              3,
154              0.6
155            ],
156            "material": {
157              "color": [
158                0.38,
159                0.32,
160                0.25
161              ],
162              "roughness": 0.9
163            },
164            "collider": true
165          }
166        },
167        {
168          "key": "lintel",
169          "patch": {
170            "mesh": "box",
171            "position": [
172              0,
173              3,
174              0
175            ],
176            "scale": [
177              3.7,
178              0.45,
179              0.7
180            ],
181            "material": {
182              "color": [
183                0.38,
184                0.32,
185                0.25
186              ],
187              "roughness": 0.9
188            },
189            "collider": true
190          }
191        }
192      ]
193    },
194    {
195      "id": "lantern-arch",
196      "extends": "stone-arch",
197      "members": [
198        {
199          "key": "lamp",
200          "patch": {
201            "mesh": "sphere",
202            "position": [
203              0,
204              2.55,
205              0
206            ],
207            "scale": [
208              0.18,
209              0.24,
210              0.18
211            ],
212            "material": {
213              "color": [
214                1,
215                0.57,
216                0.19
217              ],
218              "emission": 4
219            },
220            "motion": {
221              "kind": "flicker",
222              "phase": 0.5
223            }
224          }
225        }
226      ]
227    },
228    {
229      "id": "planter",
230      "members": [
231        {
232          "key": "bowl",
233          "patch": {
234            "mesh": "cylinder",
235            "position": [
236              0,
237              0.3,
238              0
239            ],
240            "scale": [
241              0.7,
242              0.6,
243              0.7
244            ],
245            "material": {
246              "color": [
247                0.28,
248                0.34,
249                0.22
250              ]
251            },
252            "collider": true
253          }
254        }
255      ]
256    }
257  ],
258  "instances": [
259    {
260      "id": "entry-arch",
261      "prefab": "lantern-arch",
262      "place": "motor",
263      "offset": [
264        0,
265        0,
266        -4
267      ],
268      "overrides": [
269        {
270          "key": "lamp",
271          "patch": {
272            "material": {
273              "color": [
274                1,
275                0.7,
276                0.3
277              ],
278              "emission": 3
279            }
280          }
281        }
282      ],
283      "bindings": [
284        {
285          "key": "left",
286          "source": "entry-arch.left",
287          "entity": "authored:0000000000000000000000000000000000000000000000000000000000000064"
288        },
289        {
290          "key": "right",
291          "source": "entry-arch.right",
292          "entity": "authored:0000000000000000000000000000000000000000000000000000000000000065"
293        },
294        {
295          "key": "lintel",
296          "source": "entry-arch.lintel",
297          "entity": "authored:0000000000000000000000000000000000000000000000000000000000000066"
298        },
299        {
300          "key": "lamp",
301          "source": "entry-arch.lamp",
302          "entity": "authored:0000000000000000000000000000000000000000000000000000000000000067"
303        }
304      ]
305    },
306    {
307      "id": "annex-arch",
308      "prefab": "stone-arch",
309      "place": "annex",
310      "offset": [
311        2,
312        0,
313        0
314      ],
315      "overrides": [],
316      "bindings": [
317        {
318          "key": "left",
319          "source": "annex-arch.left",
320          "entity": "authored:00000000000000000000000000000000000000000000000000000000000000c8"
321        },
322        {
323          "key": "right",
324          "source": "annex-arch.right",
325          "entity": "authored:00000000000000000000000000000000000000000000000000000000000000c9"
326        },
327        {
328          "key": "lintel",
329          "source": "annex-arch.lintel",
330          "entity": "authored:00000000000000000000000000000000000000000000000000000000000000ca"
331        }
332      ]
333    },
334    {
335      "id": "entry-planter",
336      "prefab": "planter",
337      "place": "motor",
338      "offset": [
339        3,
340        0,
341        1
342      ],
343      "overrides": [],
344      "bindings": [
345        {
346          "key": "bowl",
347          "source": "entry-planter.bowl",
348          "entity": "authored:000000000000000000000000000000000000000000000000000000000000012c"
349        }
350      ]
351    }
352  ]
353}
354