Files

119 lines
3.1 KiB
JSON

{
"prefab" : "../prefabs/scene_prefab.json",
"children" : [{
"prefab" : "../prefabs/camera_prefab.json",
"components" : {
"actor" : {
"rotation" : 0.5
},
"camera" : {
"viewport" : [0.0, 0.0, 0.45, 1.0]
},
"named" : {
"name" : "camera(1)"
}
}
},{
"prefab" : "../prefabs/camera_prefab.json",
"components" : {
"actor" : {
"rotation" : -0.5
},
"camera" : {
"viewport" : [0.55, 0.0, 0.45, 1.0]
},
"named" : {
"name" : "camera(2)"
}
}
},{
"prefab" : "../prefabs/ship_prefab.json",
"components" : {
"named" : {
"name" : "ship(1)"
},
"actor" : {
"translation" : [0,0],
"rotation" : 1
},
"touchable" : {},
"circle_collider" : {
"offset" : [10,15],
"radius" : 33
}
},
"children" : [{
"prefab" : "../prefabs/ship_prefab.json",
"components" : {
"named" : {
"name" : "ship(11)"
},
"actor" : {
"translation" : [0,0],
"rotation" : 1,
"scale" : [0.5,0.5]
},
"touchable" : {},
"circle_collider" : {
"offset" : [10,15],
"radius" : 33
}
}
}]
},{
"prefab" : "../prefabs/ship_prefab.json",
"components" : {
"named" : {
"name" : "ship(2)"
},
"actor" : {
"translation" : [120,100],
"rotation" : 0.2
},
"touchable" : {},
"rect_collider" : {
"size" : [66,113]
},
"polygon_collider" : {
"offset" : [25,50],
"points" : [
[-20,0],
[0,-20],
[20,0],
[30,-50],
[-30,-50]
]
}
}
},{
"components" : {
"named" : {
"name" : "floor"
},
"actor" : {
"translation" : [0,-240]
},
"rect_collider" : {
"size" : [320, 50]
}
}
},{
"prefab" : "../prefabs/label_sdf_prefab.json",
"components" : {
"named" : {
"name" : "label"
},
"label" : {
"text" : "Hello!",
"halign" : "center",
"outline_width" : 0.5,
"outline_color" : [0,0,0,255]
},
"actor" : {
"translation" : [-80,-140],
"scale" : 1
}
}
}]
}