mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
layout sample scene
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
"name" : "camera"
|
"name" : "camera"
|
||||||
},
|
},
|
||||||
"camera" : {
|
"camera" : {
|
||||||
"background" : [1.0, 0.4, 0.0, 1.0]
|
"background" : [1.0, 0.4, 0.0, 1.0],
|
||||||
|
"mode" : "fixed_crop"
|
||||||
},
|
},
|
||||||
"camera.input" : {},
|
"camera.input" : {},
|
||||||
"camera.gizmos" : {}
|
"camera.gizmos" : {}
|
||||||
|
|||||||
@@ -4,5 +4,64 @@
|
|||||||
"prototype" : "../prefabs/background_prefab.json"
|
"prototype" : "../prefabs/background_prefab.json"
|
||||||
},{
|
},{
|
||||||
"prototype" : "../prefabs/camera_prefab.json"
|
"prototype" : "../prefabs/camera_prefab.json"
|
||||||
|
},{
|
||||||
|
"components" : {
|
||||||
|
"named" : {
|
||||||
|
"name" : "layout"
|
||||||
|
},
|
||||||
|
"layout" : {}
|
||||||
|
},
|
||||||
|
"children" : [{
|
||||||
|
"components" : {
|
||||||
|
"named" : {
|
||||||
|
"name" : "layout_item"
|
||||||
|
},
|
||||||
|
"layout_item" : {
|
||||||
|
"size" : [66,113]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"children" : [{
|
||||||
|
"prototype" : "../prefabs/ship_prefab.json",
|
||||||
|
"components" : {
|
||||||
|
"actor" : {
|
||||||
|
"translation" : [33,56.5]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},{
|
||||||
|
"components" : {
|
||||||
|
"named" : {
|
||||||
|
"name" : "layout_item"
|
||||||
|
},
|
||||||
|
"layout_item" : {
|
||||||
|
"size" : [66,113]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"children" : [{
|
||||||
|
"prototype" : "../prefabs/ship_prefab.json",
|
||||||
|
"components" : {
|
||||||
|
"actor" : {
|
||||||
|
"translation" : [33,56.5]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},{
|
||||||
|
"components" : {
|
||||||
|
"named" : {
|
||||||
|
"name" : "layout_item"
|
||||||
|
},
|
||||||
|
"layout_item" : {
|
||||||
|
"size" : [66,113]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"children" : [{
|
||||||
|
"prototype" : "../prefabs/ship_prefab.json",
|
||||||
|
"components" : {
|
||||||
|
"actor" : {
|
||||||
|
"translation" : [33,56.5]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user