摄像机系统,和子对象绑定
This commit is contained in:
@@ -1,21 +1,31 @@
|
||||
{
|
||||
"actors": [
|
||||
{
|
||||
"name": "square",
|
||||
"init": "square_init",
|
||||
"tick": "square_tick",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"facing": {
|
||||
"x": 1,
|
||||
"y": 0
|
||||
},
|
||||
"mesh": {
|
||||
"shape": "quad",
|
||||
"texture": "Dank.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
"default_camera": "square_camera",
|
||||
"grid_background": true,
|
||||
"actors": [
|
||||
{
|
||||
"name": "square",
|
||||
"init": "square_init",
|
||||
"tick": "square_tick",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"facing": {
|
||||
"x": 1,
|
||||
"y": 0
|
||||
},
|
||||
"mesh": {
|
||||
"shape": "quad",
|
||||
"texture": "Dank.png"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "square_camera",
|
||||
"type": "camera",
|
||||
"position": { "x": 0, "y": 0 },
|
||||
"zoom": 0.2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user