Add prefab support

This commit is contained in:
2026-07-20 14:44:14 -05:00
parent b9f06fef7a
commit 38c2f6b6f9
14 changed files with 294 additions and 69 deletions
+1 -13
View File
@@ -23,19 +23,7 @@
},
{
"name": "player",
"components": [
{ "type": "POSITION", "x": 0, "y": 5, "z": 0 },
{
"type": "RENDERABLE",
"renderType": "SHADER_MATERIAL",
"priority": 0,
"shaderType": "UNLIT",
"color": { "r": 255, "g": 80, "b": 80, "a": 255 },
"displayState": { "cull": false, "depthTest": true, "blend": false }
},
{ "type": "PLAYER", "moveSpeed": 4, "jumpImpulse": 6 },
{ "type": "PHYSICS", "bodyType": "DYNAMIC", "collideMask": 3 }
]
"extend": "PLAYER"
},
{
"components": [