mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
137 lines
3.6 KiB
JSON
137 lines
3.6 KiB
JSON
{
|
|
"components" : {
|
|
"named" : {
|
|
"name" : "scene"
|
|
},
|
|
"scene" : {},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_08/sample_08.lua"
|
|
}
|
|
},
|
|
"children" : [{
|
|
"prototype" : "../prefabs/camera_prefab.json",
|
|
"components" : {
|
|
"actor" : {
|
|
"rotation" : 0.5
|
|
},
|
|
"camera" : {
|
|
"viewport" : [0.0, 0.0, 0.45, 1.0]
|
|
},
|
|
"named" : {
|
|
"name" : "camera(1)"
|
|
}
|
|
}
|
|
},{
|
|
"prototype" : "../prefabs/camera_prefab.json",
|
|
"components" : {
|
|
"actor" : {
|
|
"rotation" : -0.5
|
|
},
|
|
"camera" : {
|
|
"viewport" : [0.55, 0.0, 0.45, 1.0]
|
|
},
|
|
"named" : {
|
|
"name" : "camera(2)"
|
|
}
|
|
}
|
|
},{
|
|
"prototype" : "../prefabs/ship_prefab.json",
|
|
"components" : {
|
|
"named" : {
|
|
"name" : "ship(1)"
|
|
},
|
|
"actor" : {
|
|
"translation" : [0,0],
|
|
"rotation" : 1
|
|
},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_08/ship.lua"
|
|
},
|
|
"touchable" : {},
|
|
"circle_collider" : {
|
|
"offset" : [10,15],
|
|
"radius" : 33
|
|
}
|
|
},
|
|
"children" : [{
|
|
"prototype" : "../prefabs/ship_prefab.json",
|
|
"components" : {
|
|
"named" : {
|
|
"name" : "ship(11)"
|
|
},
|
|
"actor" : {
|
|
"translation" : [0,0],
|
|
"rotation" : 1,
|
|
"scale" : [0.5,0.5]
|
|
},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_08/ship.lua"
|
|
},
|
|
"touchable" : {},
|
|
"circle_collider" : {
|
|
"offset" : [10,15],
|
|
"radius" : 33
|
|
}
|
|
},
|
|
"children" : []
|
|
}]
|
|
},{
|
|
"prototype" : "../prefabs/ship_prefab.json",
|
|
"components" : {
|
|
"named" : {
|
|
"name" : "ship(2)"
|
|
},
|
|
"actor" : {
|
|
"translation" : [120,100],
|
|
"rotation" : 0.2
|
|
},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_08/ship.lua"
|
|
},
|
|
"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]
|
|
}
|
|
}
|
|
},{
|
|
"prototype" : "../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
|
|
}
|
|
}
|
|
}]
|
|
}
|