layaair-example

This commit is contained in:
King Wang
2021-07-21 23:11:13 +08:00
parent c3aa1f918e
commit 4bfe797a89
203 changed files with 257823 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
{
"x":0,
"type":"Sprite",
"selectedBox":1,
"selecteID":5,
"referenceLines":null,
"props":{"y":0,"x":0,"texture":"test/c2.png","presetID":1,"preset":"laya/pages/prefab/Bullet.prefab","name":"buttle","isPresetRoot":true,"group":-2},
"nodeParent":-1,
"label":"buttle",
"isOpen":true,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":1,
"child":[
{
"x":15,
"type":"CircleCollider",
"switchAble":true,
"removeAble":true,
"props":{"radius":15,"presetID":2,"preset":"laya/pages/prefab/Bullet.prefab","label":"buttle","isSensor":true},
"nodeParent":1,
"label":"CircleCollider(Bullet)",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":2,
"child":[
]
},
{
"x":15,
"type":"RigidBody",
"switchAble":true,
"removeAble":true,
"props":{"type":"kinematic","presetID":3,"preset":"laya/pages/prefab/Bullet.prefab","group":-2},
"nodeParent":1,
"label":"RigidBody(Bullet)",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":3,
"child":[
]
},
{
"x":15,
"type":"Script",
"switchAble":true,
"source":"src/script/Bullet.ts",
"removeAble":true,
"props":{"presetID":4,"preset":"laya/pages/prefab/Bullet.prefab"},
"nodeParent":1,
"label":"Bullet",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":6,
"child":[
]
}],
"animations":[
{
"nodes":[
],
"name":"ani1",
"id":1,
"frameRate":24,
"action":0
}]
}

View File

@@ -0,0 +1,85 @@
{
"x":0,
"type":"Sprite",
"selectedBox":1,
"selecteID":8,
"props":{"texture":"test/b1.png","presetID":1,"preset":"laya/pages/prefab/DropBox.prefab","pivotY":50,"pivotX":50,"name":"levelTxt","isPresetRoot":true,"group":1,"gravityScale":0.5},
"nodeParent":-1,
"label":"levelTxt",
"isOpen":true,
"isDirectory":true,
"isAniNode":true,
"hasChild":true,
"compId":1,
"child":[
{
"x":15,
"type":"BoxCollider",
"switchAble":true,
"removeAble":true,
"props":{"width":100,"presetID":2,"preset":"laya/pages/prefab/DropBox.prefab","height":100},
"nodeParent":1,
"label":"BoxCollider(DropBox)",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":2,
"child":[
]
},
{
"x":15,
"type":"RigidBody",
"switchAble":true,
"removeAble":true,
"props":{"type":"dynamic","presetID":3,"preset":"laya/pages/prefab/DropBox.prefab","group":-1,"gravityScale":0.5},
"nodeParent":1,
"label":"RigidBody(DropBox)",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":3,
"child":[
]
},
{
"x":15,
"type":"Text",
"props":{"y":0,"x":11.5,"width":77,"valign":"middle","text":"1","presetID":4,"preset":"laya/pages/prefab/DropBox.prefab","name":"levelTxt","height":100,"fontSize":100,"color":"#ffffff","align":"center"},
"nodeParent":1,
"label":"levelTxt",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":4,
"child":[
]
},
{
"x":15,
"type":"Script",
"switchAble":true,
"source":"src/script/DropBox.ts",
"removeAble":true,
"props":{"presetID":5,"preset":"laya/pages/prefab/DropBox.prefab"},
"nodeParent":1,
"label":"DropBox",
"isDirectory":false,
"isAniNode":true,
"hasChild":false,
"compId":9,
"child":[
]
}],
"animations":[
{
"nodes":[
],
"name":"ani1",
"id":1,
"frameRate":24,
"events":[
],
"action":0
}]
}