mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-06 11:51:00 +07:00
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"components" : {
|
|
"scene" : {},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_07/sample_07.lua"
|
|
}
|
|
},
|
|
"children" : [{
|
|
"prototype" : "../prefabs/camera_prefab.json"
|
|
},{
|
|
"prototype" : "../prefabs/gnome_prefab.json",
|
|
"components" : {
|
|
"actor" : {
|
|
"translation" : [0,0,0],
|
|
"scale" : 20
|
|
},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_07/gnome.lua"
|
|
}
|
|
}
|
|
},{
|
|
"prototype" : "../prefabs/label_sdf_prefab.json",
|
|
"components" : {
|
|
"label" : {
|
|
"text" : "FPS: ",
|
|
"halign" : "left",
|
|
"outline_width" : 0.5,
|
|
"outline_color" : [0,0,0,255]
|
|
},
|
|
"actor" : {
|
|
"translation" : [-315,-235,0],
|
|
"scale" : 1
|
|
},
|
|
"behaviour" : {
|
|
"script" : "../scripts/sample_07/fps_label.lua"
|
|
}
|
|
}
|
|
}]
|
|
}
|