diff --git a/assets/cocos_generator/scene/box2d.ts b/assets/cocos_generator/scene/box2d.ts index 11d5834e81b920fb34c9a1960b3450a40b3dc647..e0a57b85f691ce85fef14044edb4fb220e28e124 100644 --- a/assets/cocos_generator/scene/box2d.ts +++ b/assets/cocos_generator/scene/box2d.ts @@ -5,32 +5,21 @@ // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html +import pg from "./tool/pg"; + const { ccclass, property } = cc._decorator; @ccclass export default class Box2d extends cc.Component { - - @property(cc.Label) - label: cc.Label = null; - - @property - text: string = 'hello'; - // LIFE-CYCLE CALLBACKS: private layout_item: cc.Node; onLoad() { cc.director.getPhysicsManager().enabled = true; - cc.director.getPhysicsManager().debugDrawFlags = - // cc.PhysicsManager.DrawBits.e_aabbBit | - // cc.PhysicsManager.DrawBits.e_pairBit | - // cc.PhysicsManager.DrawBits.e_centerOfMassBit | - cc.PhysicsManager.DrawBits.e_jointBit | - cc.PhysicsManager.DrawBits.e_shapeBit; - // cc.director.getPhysicsManager().gravity = cc.v2(0, -320); + // cc.director.getPhysicsManager().debugDrawFlags = cc.PhysicsManager.DrawBits.e_jointBit | cc.PhysicsManager.DrawBits.e_shapeBit; + cc.director.getPhysicsManager().debugDrawFlags = 0; cc.director.getPhysicsManager().gravity = cc.v2(0, -640); - // å¼€å¯ç‰©ç†æ¥é•¿çš„设置 var manager = cc.director.getPhysicsManager(); manager.enabledAccumulator = true; @@ -41,41 +30,37 @@ export default class Box2d extends cc.Component { // æ¯æ¬¡æ›´æ–°ç‰©ç†ç³»ç»Ÿå¤„ç†ä½ç½®çš„è¿ä»£æ¬¡æ•°ï¼Œé»˜è®¤ä¸º 10 cc.PhysicsManager.POSITION_ITERATIONS = 8; - // setTimeout(() => { - // let item = this.node.getChildByName("item2") - // let rigid = item.getComponent(cc.RigidBody) - // rigid.linearVelocity = cc.v2(-100, 0) - // }, 1500); this.layout_item = this.node.getChildByName('layout_item') - this.initOrange(); - // setTimeout(() => { - // this.jumpOrange(); - // }, 1000); - // setTimeout(() => { - // this.jumpOrange(); - // }, 6000); - // setTimeout(() => { - // this.jumpOrange(); - // }, 11000); - // setTimeout(() => { - // this.jumpOrange(); - // }, 16000); - // setTimeout(() => { - // this.jumpOrange(); - // }, 21000); - // setTimeout(() => { - // this.jumpRoll(); - // }, 26000); + + pg.event.on("box2d_init", (len: number) => { + let arr = []; + for (let i = 0; i < len; i++) { + arr.push(100 + i); + } + this.initOrange(arr); + }) + pg.event.on("box2d_next", () => { + this.jumpOrange(); + }) + pg.event.on("box2d_roll", () => { + this.jumpRoll(); + }) + pg.event.on("box2d_hide", () => { + this.hideJump(); + }) } current: number; - initOrange() { + ids: Array<number>; + jumpedNodes: Array<cc.Node>; + initOrange(ids = [101, 102, 103, 104, 105]) { + this.current = 0; + this.jumpedNodes = []; + this.ids = ids.concat(); this.layout_item.removeAllChildren(); let item = this.node.getChildByName("item"); let p0 = cc.v2(-320, 305); let pSpace = cc.v2(120, 0) - let ids = [101, 102, 103, 104, 105] - this.current = 0; for (let i = 0; i < ids.length; i++) { let node = cc.instantiate(item); node.active = true; @@ -89,13 +74,12 @@ export default class Box2d extends cc.Component { return this.layout_item.children.filter(node => ids.some(id => id == node.data)) } jumpOrange() { - this.current; let baffle = this.node.getChildByName('baffle') baffle.active = false; let lid = this.node.getChildByName('lid') lid.active = false; // æ ¹æ®currentæ¥æ‰¾æ©˜ååŠåŽç»çš„内容 - let ids = [101, 102, 103, 104, 105].concat(); + let ids = this.ids.concat(); let jumping: any = [ids[this.current++]]; let moveing: any = [] for (let i = this.current; i < ids.length; i++) { @@ -105,37 +89,48 @@ export default class Box2d extends cc.Component { moveing = this.findItemByIds(moveing) jumping.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-200, 0) + this.jumpedNodes.push(node); }) moveing.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-100, 0) this.scheduleOnce(() => { - // node.getComponent(cc.RigidBody).linearVelocity = cc.v2(0, 0) baffle.active = true; - }, 1.2) + node.getComponent(cc.RigidBody).linearDamping = 2 + }, 1.3) }) + setTimeout(() => { + pg.event.emit("box2d_next_successed") + }, 2000); } jumpRoll() { let lid = this.node.getChildByName('lid') lid.active = true; - this.layout_item.children.forEach(node => { + let list = this.jumpedNodes; + list.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(370, 500) }) setTimeout(() => { - this.layout_item.children.forEach(node => { + list.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-370, 500) }) }, 1000); setTimeout(() => { - this.layout_item.children.forEach(node => { + list.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(370, 500) }) }, 2000); setTimeout(() => { - this.layout_item.children.forEach(node => { + list.forEach(node => { node.getComponent(cc.RigidBody).linearVelocity = cc.v2(-370, 500) }) + setTimeout(() => { + pg.event.emit("box2d_roll_successed") + }, 1000); }, 3000); } + hideJump() { + this.jumpedNodes.forEach(node => node.active = false) + } start() { } diff --git a/assets/cocos_generator/scene/ngt10_tydh.fire b/assets/cocos_generator/scene/ngt10_tydh.fire index e6ee56b6a24f320dafdd7fe730170af757eb0a5e..45be40e715be675f25b35510b64079618befcc29 100644 --- a/assets/cocos_generator/scene/ngt10_tydh.fire +++ b/assets/cocos_generator/scene/ngt10_tydh.fire @@ -93,7 +93,7 @@ "__id__": 60 }, { - "__id__": 67 + "__id__": 116 }, { "__id__": 123 @@ -2927,7 +2927,7 @@ }, { "__type__": "cc.Node", - "_name": "bg_font", + "_name": "box2d", "_objFlags": 0, "_parent": { "__id__": 2 @@ -2937,15 +2937,36 @@ "__id__": 61 }, { - "__id__": 63 + "__id__": 83 + }, + { + "__id__": 89 + }, + { + "__id__": 91 + }, + { + "__id__": 95 + }, + { + "__id__": 99 }, { - "__id__": 65 + "__id__": 104 + }, + { + "__id__": 109 } ], "_active": true, - "_components": [], - "_prefab": null, + "_components": [ + { + "__id__": 114 + } + ], + "_prefab": { + "__id__": 115 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -2991,23 +3012,37 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "8aXvAkwoVKpaklbN4IvlO5" + "_id": "69VeqtIxZBmJu5qKjrBTPR" }, { "__type__": "cc.Node", - "_name": "bg_enter", + "_name": "machine", "_objFlags": 0, "_parent": { "__id__": 60 }, - "_children": [], - "_active": false, - "_components": [ + "_children": [ { "__id__": 62 + }, + { + "__id__": 66 + }, + { + "__id__": 70 + }, + { + "__id__": 74 + }, + { + "__id__": 78 } ], - "_prefab": null, + "_active": true, + "_components": [], + "_prefab": { + "__id__": 82 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -3018,8 +3053,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 361, - "height": 143 + "width": 0, + "height": 0 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3030,8 +3065,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -649.734, - 101.156, + 0, + 0, 0, 0, 0, @@ -3053,55 +3088,28 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "73oQKBIfZPSZVWy+f2e8Uh" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 61 - }, - "_enabled": true, - "_materials": [ - { - "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" - } - ], - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "6adc2b17-0310-4cdb-862c-551c9f6e106f" - }, - "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_atlas": null, - "_id": "d8x9q2uppDm7BufP2CgPbw" + "_id": "4dEJ4GYnNIIovTGYO2u+f8" }, { "__type__": "cc.Node", - "_name": "bg_light", + "_name": "bottom", "_objFlags": 0, "_parent": { - "__id__": 60 + "__id__": 61 }, "_children": [], "_active": true, "_components": [ + { + "__id__": 63 + }, { "__id__": 64 } ], - "_prefab": null, + "_prefab": { + "__id__": 65 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -3112,8 +3120,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 288, - "height": 311 + "width": 380, + "height": 100 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3124,8 +3132,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -618.609, - -163.406, + -659.958, + -453.954, 0, 0, 0, @@ -3147,55 +3155,90 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "beeki2AWpC5pNJEAOoe5vH" + "_id": "8eY3eWa8BGkqcDu3Mxqm4Q" }, { - "__type__": "cc.Sprite", + "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 63 + "__id__": 62 }, "_enabled": true, - "_materials": [ - { - "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" - } - ], - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "920c588a-fe29-4846-8aa7-3ed9886e4cb2" - }, "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { + "_allowSleep": true, + "_gravityScale": 1, + "_linearDamping": 0, + "_angularDamping": 0, + "_linearVelocity": { "__type__": "cc.Vec2", "x": 0, "y": 0 }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_atlas": null, - "_id": "ab5+Vlsi1NEY9M4D6DRjwo" + "_angularVelocity": 0, + "_fixedRotation": false, + "enabledContactListener": true, + "bullet": true, + "awakeOnLoad": true, + "_id": "90QZaYPkNFmZ3EqVTlUae0" + }, + { + "__type__": "cc.PhysicsBoxCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 62 + }, + "_enabled": true, + "tag": 0, + "_density": 1, + "_sensor": false, + "_friction": 0.2, + "_restitution": 0, + "body": null, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_size": { + "__type__": "cc.Size", + "width": 380, + "height": 100 + }, + "_id": "eaX+rev+1HFpTJffig7n/a" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "66v4BrrB1KXYgZ+UiM2dFM", + "sync": false }, { "__type__": "cc.Node", - "_name": "bg_jia", + "_name": "left", "_objFlags": 0, "_parent": { - "__id__": 60 + "__id__": 61 }, "_children": [], "_active": true, "_components": [ { - "__id__": 66 + "__id__": 67 + }, + { + "__id__": 68 } ], - "_prefab": null, + "_prefab": { + "__id__": 69 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -3206,8 +3249,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 1096, - "height": 424 + "width": 100, + "height": 380 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3218,8 +3261,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - 42.156, - 100.445, + -892.796, + -158.122, 0, 0, 0, @@ -3241,224 +3284,89 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "a8jVhewhhOEIz8b81uXlNj" + "_id": "9cFciCCB1C0K02qqWwUFds" }, { - "__type__": "cc.Sprite", + "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 65 + "__id__": 66 }, "_enabled": true, - "_materials": [ - { - "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" - } - ], - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "c516cb9c-150b-40dd-8afe-14e78ef40d0a" - }, "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { + "_allowSleep": true, + "_gravityScale": 1, + "_linearDamping": 0, + "_angularDamping": 0, + "_linearVelocity": { "__type__": "cc.Vec2", "x": 0, "y": 0 }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_atlas": null, - "_id": "c6nvXaQDRIaqVcslhbTMfv" + "_angularVelocity": 0, + "_fixedRotation": false, + "enabledContactListener": false, + "bullet": false, + "awakeOnLoad": true, + "_id": "a5lBxSwipJHqDIVjJCPH/P" }, { - "__type__": "cc.Node", - "_name": "box2d", + "__type__": "cc.PhysicsBoxCollider", + "_name": "", "_objFlags": 0, - "_parent": { - "__id__": 2 + "node": { + "__id__": 66 }, - "_children": [ - { - "__id__": 68 - }, - { - "__id__": 90 - }, - { - "__id__": 96 - }, - { - "__id__": 98 - }, - { - "__id__": 102 - }, - { - "__id__": 106 - }, - { - "__id__": 111 - }, - { - "__id__": 116 - } - ], - "_active": true, - "_components": [ - { - "__id__": 121 - } - ], - "_prefab": { - "__id__": 122 - }, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 0, - "height": 0 - }, - "_anchorPoint": { + "_enabled": true, + "tag": 0, + "_density": 1, + "_sensor": false, + "_friction": 0.2, + "_restitution": 0, + "body": null, + "_offset": { "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - }, - "_eulerAngles": { - "__type__": "cc.Vec3", "x": 0, - "y": 0, - "z": 0 - }, - "_skewX": 0, - "_skewY": 0, - "_is3DNode": false, - "_groupIndex": 0, - "groupIndex": 0, - "_id": "69VeqtIxZBmJu5qKjrBTPR" - }, - { - "__type__": "cc.Node", - "_name": "machine", - "_objFlags": 0, - "_parent": { - "__id__": 67 - }, - "_children": [ - { - "__id__": 69 - }, - { - "__id__": 73 - }, - { - "__id__": 77 - }, - { - "__id__": 81 - }, - { - "__id__": 85 - } - ], - "_active": true, - "_components": [], - "_prefab": { - "__id__": 89 - }, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 + "y": 0 }, - "_contentSize": { + "_size": { "__type__": "cc.Size", - "width": 0, - "height": 0 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 + "width": 100, + "height": 380 }, - "_trs": { - "__type__": "TypedArray", - "ctor": "Float64Array", - "array": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] + "_id": "38MY0iQ89BGoH73qFhU6s9" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 }, - "_eulerAngles": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "_skewX": 0, - "_skewY": 0, - "_is3DNode": false, - "_groupIndex": 0, - "groupIndex": 0, - "_id": "4dEJ4GYnNIIovTGYO2u+f8" + "fileId": "858qUjqKVLxYfNk+LQrz4M", + "sync": false }, { "__type__": "cc.Node", - "_name": "bottom", + "_name": "right", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 61 }, "_children": [], "_active": true, "_components": [ { - "__id__": 70 + "__id__": 71 }, { - "__id__": 71 + "__id__": 72 } ], "_prefab": { - "__id__": 72 + "__id__": 73 }, "_opacity": 255, "_color": { @@ -3470,8 +3378,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 380, - "height": 100 + "width": 100, + "height": 380 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3482,8 +3390,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -659.958, - -450.037, + -424.162, + -158.122, 0, 0, 0, @@ -3505,14 +3413,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "8eY3eWa8BGkqcDu3Mxqm4Q" + "_id": "ffeZU2SPRGP4YkwLbchql/" }, { "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 69 + "__id__": 70 }, "_enabled": true, "_type": 0, @@ -3527,17 +3435,17 @@ }, "_angularVelocity": 0, "_fixedRotation": false, - "enabledContactListener": true, - "bullet": true, + "enabledContactListener": false, + "bullet": false, "awakeOnLoad": true, - "_id": "90QZaYPkNFmZ3EqVTlUae0" + "_id": "b6J4Rkv9tBQ5snZTpX78ak" }, { "__type__": "cc.PhysicsBoxCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 69 + "__id__": 70 }, "_enabled": true, "tag": 0, @@ -3553,41 +3461,41 @@ }, "_size": { "__type__": "cc.Size", - "width": 380, - "height": 100 + "width": 100, + "height": 380 }, - "_id": "eaX+rev+1HFpTJffig7n/a" + "_id": "e12K0IVJ1NHq1/uUN7GyTy" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "66v4BrrB1KXYgZ+UiM2dFM", + "fileId": "85dSih8CdKXZdUqs6B8af8", "sync": false }, { "__type__": "cc.Node", - "_name": "left", + "_name": "funnel_right", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 61 }, "_children": [], "_active": true, "_components": [ { - "__id__": 74 + "__id__": 75 }, { - "__id__": 75 + "__id__": 76 } ], "_prefab": { - "__id__": 76 + "__id__": 77 }, "_opacity": 255, "_color": { @@ -3599,8 +3507,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, - "height": 380 + "width": 50, + "height": 200 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3611,13 +3519,13 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -892.796, - -158.122, - 0, + -483.733, + 103.844, 0, 0, 0, - 1, + -0.25038000405444144, + 0.9681476403781077, 1, 1, 1 @@ -3627,21 +3535,21 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 0 + "z": -29 }, "_skewX": 0, "_skewY": 0, "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "9cFciCCB1C0K02qqWwUFds" + "_id": "62KUTb2z1CV71YMNw9Wflh" }, { "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 73 + "__id__": 74 }, "_enabled": true, "_type": 0, @@ -3659,14 +3567,14 @@ "enabledContactListener": false, "bullet": false, "awakeOnLoad": true, - "_id": "a5lBxSwipJHqDIVjJCPH/P" + "_id": "f5vZ+UqVZMhovHtGVw89TV" }, { "__type__": "cc.PhysicsBoxCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 73 + "__id__": 74 }, "_enabled": true, "tag": 0, @@ -3682,41 +3590,41 @@ }, "_size": { "__type__": "cc.Size", - "width": 100, - "height": 380 + "width": 50, + "height": 200 }, - "_id": "38MY0iQ89BGoH73qFhU6s9" + "_id": "81FjZoTyZNd698FAwSllCe" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "858qUjqKVLxYfNk+LQrz4M", + "fileId": "7dQKh451dKEoyJ7EPqTxq7", "sync": false }, { "__type__": "cc.Node", - "_name": "right", + "_name": "funnel_left", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 61 }, "_children": [], "_active": true, "_components": [ { - "__id__": 78 + "__id__": 79 }, { - "__id__": 79 + "__id__": 80 } ], "_prefab": { - "__id__": 80 + "__id__": 81 }, "_opacity": 255, "_color": { @@ -3728,8 +3636,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, - "height": 380 + "width": 50, + "height": 200 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3740,13 +3648,13 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -424.162, - -158.122, - 0, + -815.563, + 104.978, 0, 0, 0, - 1, + 0.25038000405444144, + 0.9681476403781077, 1, 1, 1 @@ -3756,21 +3664,21 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 0 + "z": 29 }, "_skewX": 0, "_skewY": 0, "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "ffeZU2SPRGP4YkwLbchql/" + "_id": "8dL3vXG21MZq5Iw1Q2xQoe" }, { "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 77 + "__id__": 78 }, "_enabled": true, "_type": 0, @@ -3788,14 +3696,14 @@ "enabledContactListener": false, "bullet": false, "awakeOnLoad": true, - "_id": "b6J4Rkv9tBQ5snZTpX78ak" + "_id": "baoN5iKtlL4YqKVKm5nNny" }, { "__type__": "cc.PhysicsBoxCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 77 + "__id__": 78 }, "_enabled": true, "tag": 0, @@ -3811,41 +3719,49 @@ }, "_size": { "__type__": "cc.Size", - "width": 100, - "height": 380 + "width": 50, + "height": 200 }, - "_id": "e12K0IVJ1NHq1/uUN7GyTy" + "_id": "7ewU4jO6hL7pWeLQOk/qhx" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "85dSih8CdKXZdUqs6B8af8", + "fileId": "32KXUGEaJM5oC0MxA7ZYo+", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "a00G+c9TtNN654Mj3Hgp1I", "sync": false }, { "__type__": "cc.Node", - "_name": "funnel_right", + "_name": "shelf", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 60 }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 82 - }, + "_children": [ { - "__id__": 83 + "__id__": 84 } ], + "_active": true, + "_components": [], "_prefab": { - "__id__": 84 + "__id__": 88 }, "_opacity": 255, "_color": { @@ -3857,8 +3773,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 50, - "height": 200 + "width": 0, + "height": 0 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3869,13 +3785,13 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -483.733, - 103.844, 0, 0, 0, - -0.25038000405444144, - 0.9681476403781077, + 0, + 0, + 0, + 1, 1, 1, 1 @@ -3885,96 +3801,34 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": -29 + "z": 0 }, "_skewX": 0, "_skewY": 0, "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "62KUTb2z1CV71YMNw9Wflh" - }, - { - "__type__": "cc.RigidBody", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 81 - }, - "_enabled": true, - "_type": 0, - "_allowSleep": true, - "_gravityScale": 1, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": false, - "enabledContactListener": false, - "bullet": false, - "awakeOnLoad": true, - "_id": "f5vZ+UqVZMhovHtGVw89TV" - }, - { - "__type__": "cc.PhysicsBoxCollider", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 81 - }, - "_enabled": true, - "tag": 0, - "_density": 1, - "_sensor": false, - "_friction": 0.2, - "_restitution": 0, - "body": null, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_size": { - "__type__": "cc.Size", - "width": 50, - "height": 200 - }, - "_id": "81FjZoTyZNd698FAwSllCe" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" - }, - "fileId": "7dQKh451dKEoyJ7EPqTxq7", - "sync": false + "_id": "f1EdKBm+1IsqhiGMAtaOY8" }, { "__type__": "cc.Node", - "_name": "funnel_left", + "_name": "bottom", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 83 }, "_children": [], "_active": true, "_components": [ { - "__id__": 86 + "__id__": 85 }, { - "__id__": 87 + "__id__": 86 } ], "_prefab": { - "__id__": 88 + "__id__": 87 }, "_opacity": 255, "_color": { @@ -3986,8 +3840,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 50, - "height": 200 + "width": 980, + "height": 100 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3998,13 +3852,13 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -815.563, - 104.978, + 81.778, + 195.19, + 0, 0, 0, 0, - 0.25038000405444144, - 0.9681476403781077, + 1, 1, 1, 1 @@ -4014,21 +3868,21 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 29 + "z": 0 }, "_skewX": 0, "_skewY": 0, "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "8dL3vXG21MZq5Iw1Q2xQoe" + "_id": "36ByVJThBEVJw1xa/9rtWP" }, { "__type__": "cc.RigidBody", "_name": "", "_objFlags": 0, "node": { - "__id__": 85 + "__id__": 84 }, "_enabled": true, "_type": 0, @@ -4046,14 +3900,14 @@ "enabledContactListener": false, "bullet": false, "awakeOnLoad": true, - "_id": "baoN5iKtlL4YqKVKm5nNny" + "_id": "17MkR/5YhDPYSooDXnxEFV" }, { "__type__": "cc.PhysicsBoxCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 85 + "__id__": 84 }, "_enabled": true, "tag": 0, @@ -4069,49 +3923,45 @@ }, "_size": { "__type__": "cc.Size", - "width": 50, - "height": 200 + "width": 980, + "height": 100 }, - "_id": "7ewU4jO6hL7pWeLQOk/qhx" + "_id": "73wE01Sk1I5L/aRe9Yn4sq" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "32KXUGEaJM5oC0MxA7ZYo+", + "fileId": "27b7jovARLRJOoAbEe/5P8", "sync": false }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "a00G+c9TtNN654Mj3Hgp1I", + "fileId": "d7jF/UG6pNOqlSLksw1c2z", "sync": false }, { "__type__": "cc.Node", - "_name": "shelf", + "_name": "layout_item", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 60 }, - "_children": [ - { - "__id__": 91 - } - ], + "_children": [], "_active": true, "_components": [], "_prefab": { - "__id__": 95 + "__id__": 90 }, "_opacity": 255, "_color": { @@ -4158,14 +4008,25 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "f1EdKBm+1IsqhiGMAtaOY8" + "_id": "e2MECg/MZIZ5eB6K294ZNt" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "cbblpdr8RHPbn3TJKqKK3N", + "sync": false }, { "__type__": "cc.Node", - "_name": "bottom", + "_name": "lid", "_objFlags": 0, "_parent": { - "__id__": 90 + "__id__": 60 }, "_children": [], "_active": true, @@ -4190,8 +4051,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 980, - "height": 100 + "width": 350, + "height": 50 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4202,8 +4063,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - 81.778, - 195.19, + -658.048, + 18.476, 0, 0, 0, @@ -4225,7 +4086,7 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "36ByVJThBEVJw1xa/9rtWP" + "_id": "dbn9zcs1lDL6FaxM7p1rE/" }, { "__type__": "cc.RigidBody", @@ -4250,7 +4111,7 @@ "enabledContactListener": false, "bullet": false, "awakeOnLoad": true, - "_id": "17MkR/5YhDPYSooDXnxEFV" + "_id": "4eiJ+oBdJAPrU3/uNrCNoN" }, { "__type__": "cc.PhysicsBoxCollider", @@ -4273,45 +4134,41 @@ }, "_size": { "__type__": "cc.Size", - "width": 980, - "height": 100 - }, - "_id": "73wE01Sk1I5L/aRe9Yn4sq" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + "width": 350, + "height": 50 }, - "fileId": "27b7jovARLRJOoAbEe/5P8", - "sync": false + "_id": "f5WXl7iNREmpAACD1WiyVG" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "d7jF/UG6pNOqlSLksw1c2z", + "fileId": "e5sMriHj5PPp3db2DYg+BU", "sync": false }, { "__type__": "cc.Node", - "_name": "layout_item", + "_name": "baffle", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 60 }, "_children": [], - "_active": true, - "_components": [], + "_active": false, + "_components": [ + { + "__id__": 96 + }, + { + "__id__": 97 + } + ], "_prefab": { - "__id__": 97 + "__id__": 98 }, "_opacity": 255, "_color": { @@ -4323,8 +4180,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 0, - "height": 0 + "width": 50, + "height": 200 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4335,8 +4192,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - 0, - 0, + -429.048, + 293.476, 0, 0, 0, @@ -4358,38 +4215,92 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "e2MECg/MZIZ5eB6K294ZNt" + "_id": "74cIbEuWNP6oqseBj0+aXh" }, { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 + "__type__": "cc.RigidBody", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 95 }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + "_enabled": true, + "_type": 0, + "_allowSleep": true, + "_gravityScale": 1, + "_linearDamping": 0, + "_angularDamping": 0, + "_linearVelocity": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 }, - "fileId": "cbblpdr8RHPbn3TJKqKK3N", - "sync": false + "_angularVelocity": 0, + "_fixedRotation": false, + "enabledContactListener": false, + "bullet": false, + "awakeOnLoad": true, + "_id": "26l9CRvYtKP6OmVUfXYZgq" }, { - "__type__": "cc.Node", - "_name": "lid", + "__type__": "cc.PhysicsBoxCollider", + "_name": "", "_objFlags": 0, - "_parent": { - "__id__": 67 + "node": { + "__id__": 95 + }, + "_enabled": true, + "tag": 0, + "_density": 1, + "_sensor": false, + "_friction": 0.2, + "_restitution": 0, + "body": null, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_size": { + "__type__": "cc.Size", + "width": 50, + "height": 200 + }, + "_id": "b7AMSlI4JCdqP9yWRXVsHl" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "a7huoK97RMrawluzEuZ4az", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "item", + "_objFlags": 0, + "_parent": { + "__id__": 60 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { - "__id__": 99 + "__id__": 100 }, { - "__id__": 100 + "__id__": 101 + }, + { + "__id__": 102 } ], "_prefab": { - "__id__": 101 + "__id__": 103 }, "_opacity": 255, "_color": { @@ -4401,8 +4312,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 350, - "height": 50 + "width": 119, + "height": 116 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4413,8 +4324,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -658.048, - 18.476, + -328.512, + 305.849, 0, 0, 0, @@ -4436,18 +4347,50 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "dbn9zcs1lDL6FaxM7p1rE/" + "_id": "818+rx1PxPGZiFE5mn8Exe" }, { - "__type__": "cc.RigidBody", + "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 98 + "__id__": 99 }, "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + }, "_type": 0, - "_allowSleep": true, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "12iTjdidNKdaxkwELI2XgO" + }, + { + "__type__": "cc.RigidBody", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 99 + }, + "_enabled": true, + "_type": 2, + "_allowSleep": false, "_gravityScale": 1, "_linearDamping": 0, "_angularDamping": 0, @@ -4458,17 +4401,17 @@ }, "_angularVelocity": 0, "_fixedRotation": false, - "enabledContactListener": false, - "bullet": false, + "enabledContactListener": true, + "bullet": true, "awakeOnLoad": true, - "_id": "4eiJ+oBdJAPrU3/uNrCNoN" + "_id": "f7trOhBj5KBoLt9ZtJi9jZ" }, { - "__type__": "cc.PhysicsBoxCollider", + "__type__": "cc.PhysicsCircleCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 98 + "__id__": 99 }, "_enabled": true, "tag": 0, @@ -4482,43 +4425,42 @@ "x": 0, "y": 0 }, - "_size": { - "__type__": "cc.Size", - "width": 350, - "height": 50 - }, - "_id": "f5WXl7iNREmpAACD1WiyVG" + "_radius": 57, + "_id": "a7547olZxBTpntWWS2fBZ5" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "e5sMriHj5PPp3db2DYg+BU", + "fileId": "61/WfuQ9xGq4hcWtAoapGv", "sync": false }, { "__type__": "cc.Node", - "_name": "baffle", + "_name": "item1", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 60 }, "_children": [], "_active": false, "_components": [ { - "__id__": 103 + "__id__": 105 }, { - "__id__": 104 + "__id__": 106 + }, + { + "__id__": 107 } ], "_prefab": { - "__id__": 105 + "__id__": 108 }, "_opacity": 255, "_color": { @@ -4530,8 +4472,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 50, - "height": 200 + "width": 119, + "height": 116 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4542,8 +4484,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -429.048, - 293.476, + -328.512, + 305.849, 0, 0, 0, @@ -4565,39 +4507,71 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "74cIbEuWNP6oqseBj0+aXh" + "_id": "e8iGua6PpAXrWfJjFl1ka8" }, { - "__type__": "cc.RigidBody", + "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 102 + "__id__": 104 }, "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + }, "_type": 0, - "_allowSleep": true, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "87quQveQ1Ptqlg8e3yih4F" + }, + { + "__type__": "cc.RigidBody", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 104 + }, + "_enabled": true, + "_type": 2, + "_allowSleep": false, "_gravityScale": 1, "_linearDamping": 0, "_angularDamping": 0, "_linearVelocity": { "__type__": "cc.Vec2", - "x": 0, + "x": -80, "y": 0 }, "_angularVelocity": 0, "_fixedRotation": false, - "enabledContactListener": false, - "bullet": false, + "enabledContactListener": true, + "bullet": true, "awakeOnLoad": true, - "_id": "26l9CRvYtKP6OmVUfXYZgq" + "_id": "e6skfgYnRGhLs49/erjsJs" }, { - "__type__": "cc.PhysicsBoxCollider", + "__type__": "cc.PhysicsCircleCollider", "_name": "", "_objFlags": 0, "node": { - "__id__": 102 + "__id__": 104 }, "_enabled": true, "tag": 0, @@ -4611,46 +4585,42 @@ "x": 0, "y": 0 }, - "_size": { - "__type__": "cc.Size", - "width": 50, - "height": 200 - }, - "_id": "b7AMSlI4JCdqP9yWRXVsHl" + "_radius": 60, + "_id": "b1LkUP24FOU5KDXNoVEPMI" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 67 + "__id__": 60 }, "asset": { "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" }, - "fileId": "a7huoK97RMrawluzEuZ4az", + "fileId": "f87AIzUN1Aj61EdoEqfZE1", "sync": false }, { "__type__": "cc.Node", - "_name": "item", + "_name": "item2", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 60 }, "_children": [], "_active": false, "_components": [ { - "__id__": 107 + "__id__": 110 }, { - "__id__": 108 + "__id__": 111 }, { - "__id__": 109 + "__id__": 112 } ], "_prefab": { - "__id__": 110 + "__id__": 113 }, "_opacity": 255, "_color": { @@ -4674,8 +4644,249 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -328.512, - 305.849, + -55.512, + 412.849, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "018l3rq+xGqpMupGF7PbBZ" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 109 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "44WfeCf3NFx4FgAUjd5La6" + }, + { + "__type__": "cc.RigidBody", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 109 + }, + "_enabled": true, + "_type": 2, + "_allowSleep": false, + "_gravityScale": 1, + "_linearDamping": 0, + "_angularDamping": 0, + "_linearVelocity": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_angularVelocity": 0, + "_fixedRotation": false, + "enabledContactListener": true, + "bullet": false, + "awakeOnLoad": true, + "_id": "81JulCnqZIoq94UvqRrQAm" + }, + { + "__type__": "cc.PhysicsCircleCollider", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 109 + }, + "_enabled": true, + "tag": 0, + "_density": 1, + "_sensor": false, + "_friction": 0.2, + "_restitution": 0, + "body": null, + "_offset": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_radius": 60, + "_id": "19wcIs82xIILH0/a/VLKq8" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "b2qv7goQhEP6p733/cEj5p", + "sync": false + }, + { + "__type__": "3ecb7EC/BNAdLfX5A2JGQZ4", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 60 + }, + "_enabled": true, + "_id": "78eYCs3VhJSK8BkxkkUZ9z" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 60 + }, + "asset": { + "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" + }, + "fileId": "", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "bg_font", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 117 + }, + { + "__id__": 119 + }, + { + "__id__": 121 + } + ], + "_active": true, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "8aXvAkwoVKpaklbN4IvlO5" + }, + { + "__type__": "cc.Node", + "_name": "bg_enter", + "_objFlags": 0, + "_parent": { + "__id__": 116 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 118 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 361, + "height": 143 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -648.706, + 101.156, 0, 0, 0, @@ -4697,14 +4908,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "818+rx1PxPGZiFE5mn8Exe" + "_id": "73oQKBIfZPSZVWy+f2e8Uh" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 106 + "__id__": 117 }, "_enabled": true, "_materials": [ @@ -4715,7 +4926,7 @@ "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + "__uuid__": "6adc2b17-0310-4cdb-862c-551c9f6e106f" }, "_type": 0, "_sizeMode": 1, @@ -4729,89 +4940,23 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "12iTjdidNKdaxkwELI2XgO" - }, - { - "__type__": "cc.RigidBody", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 106 - }, - "_enabled": true, - "_type": 2, - "_allowSleep": false, - "_gravityScale": 1, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": false, - "enabledContactListener": true, - "bullet": true, - "awakeOnLoad": true, - "_id": "f7trOhBj5KBoLt9ZtJi9jZ" - }, - { - "__type__": "cc.PhysicsCircleCollider", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 106 - }, - "_enabled": true, - "tag": 0, - "_density": 1, - "_sensor": false, - "_friction": 0.2, - "_restitution": 0, - "body": null, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_radius": 60, - "_id": "a7547olZxBTpntWWS2fBZ5" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" - }, - "fileId": "61/WfuQ9xGq4hcWtAoapGv", - "sync": false + "_id": "d8x9q2uppDm7BufP2CgPbw" }, { "__type__": "cc.Node", - "_name": "item1", + "_name": "bg_light", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 116 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { - "__id__": 112 - }, - { - "__id__": 113 - }, - { - "__id__": 114 + "__id__": 120 } ], - "_prefab": { - "__id__": 115 - }, + "_prefab": null, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -4822,8 +4967,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 119, - "height": 116 + "width": 288, + "height": 311 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4834,8 +4979,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -328.512, - 305.849, + -618.609, + -163.406, 0, 0, 0, @@ -4857,14 +5002,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "e8iGua6PpAXrWfJjFl1ka8" + "_id": "beeki2AWpC5pNJEAOoe5vH" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 111 + "__id__": 119 }, "_enabled": true, "_materials": [ @@ -4875,7 +5020,7 @@ "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + "__uuid__": "920c588a-fe29-4846-8aa7-3ed9886e4cb2" }, "_type": 0, "_sizeMode": 1, @@ -4889,89 +5034,23 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "87quQveQ1Ptqlg8e3yih4F" - }, - { - "__type__": "cc.RigidBody", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 111 - }, - "_enabled": true, - "_type": 2, - "_allowSleep": false, - "_gravityScale": 1, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": -80, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": false, - "enabledContactListener": true, - "bullet": true, - "awakeOnLoad": true, - "_id": "e6skfgYnRGhLs49/erjsJs" - }, - { - "__type__": "cc.PhysicsCircleCollider", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 111 - }, - "_enabled": true, - "tag": 0, - "_density": 1, - "_sensor": false, - "_friction": 0.2, - "_restitution": 0, - "body": null, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_radius": 60, - "_id": "b1LkUP24FOU5KDXNoVEPMI" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" - }, - "fileId": "f87AIzUN1Aj61EdoEqfZE1", - "sync": false + "_id": "ab5+Vlsi1NEY9M4D6DRjwo" }, { "__type__": "cc.Node", - "_name": "item2", + "_name": "bg_jia", "_objFlags": 0, "_parent": { - "__id__": 67 + "__id__": 116 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { - "__id__": 117 - }, - { - "__id__": 118 - }, - { - "__id__": 119 + "__id__": 122 } ], - "_prefab": { - "__id__": 120 - }, + "_prefab": null, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -4982,8 +5061,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 119, - "height": 116 + "width": 1096, + "height": 424 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4994,8 +5073,8 @@ "__type__": "TypedArray", "ctor": "Float64Array", "array": [ - -55.512, - 412.849, + 42.156, + 100.445, 0, 0, 0, @@ -5017,14 +5096,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "018l3rq+xGqpMupGF7PbBZ" + "_id": "a8jVhewhhOEIz8b81uXlNj" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 116 + "__id__": 121 }, "_enabled": true, "_materials": [ @@ -5035,7 +5114,7 @@ "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "d0062b12-7e6f-4f7e-a1ff-b7e95049dd79" + "__uuid__": "c516cb9c-150b-40dd-8afe-14e78ef40d0a" }, "_type": 0, "_sizeMode": 1, @@ -5049,88 +5128,7 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "44WfeCf3NFx4FgAUjd5La6" - }, - { - "__type__": "cc.RigidBody", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 116 - }, - "_enabled": true, - "_type": 2, - "_allowSleep": false, - "_gravityScale": 1, - "_linearDamping": 0, - "_angularDamping": 0, - "_linearVelocity": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_angularVelocity": 0, - "_fixedRotation": false, - "enabledContactListener": true, - "bullet": false, - "awakeOnLoad": true, - "_id": "81JulCnqZIoq94UvqRrQAm" - }, - { - "__type__": "cc.PhysicsCircleCollider", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 116 - }, - "_enabled": true, - "tag": 0, - "_density": 1, - "_sensor": false, - "_friction": 0.2, - "_restitution": 0, - "body": null, - "_offset": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_radius": 60, - "_id": "19wcIs82xIILH0/a/VLKq8" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" - }, - "fileId": "b2qv7goQhEP6p733/cEj5p", - "sync": false - }, - { - "__type__": "3ecb7EC/BNAdLfX5A2JGQZ4", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 67 - }, - "_enabled": true, - "label": null, - "text": "hello", - "_id": "78eYCs3VhJSK8BkxkkUZ9z" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 67 - }, - "asset": { - "__uuid__": "d4d4fe2c-8df7-4cf6-8a53-07e045d628ca" - }, - "fileId": "", - "sync": false + "_id": "c6nvXaQDRIaqVcslhbTMfv" }, { "__type__": "cc.Node", @@ -7597,7 +7595,7 @@ "__id__": 126 }, "box2d": { - "__id__": 67 + "__id__": 60 }, "_id": "45CXemIxhH4YIC4kX1oyBq" } diff --git a/assets/cocos_generator/scene/ngt10_tydh.ts b/assets/cocos_generator/scene/ngt10_tydh.ts index 487581bd778a01d16dfa3b8829fe3e59d33b87c3..51711f781d82f53c22c736f92b168d433b1fded1 100644 --- a/assets/cocos_generator/scene/ngt10_tydh.ts +++ b/assets/cocos_generator/scene/ngt10_tydh.ts @@ -111,7 +111,6 @@ export default class SceneComponent extends MyCocosSceneComponent { private showQuestion() { let question = Game.getIns().getCurrentPage(); this.question_word.getComponent(cc.Label).string = question.text; - } @@ -220,7 +219,7 @@ export default class SceneComponent extends MyCocosSceneComponent { this.playLocalAudio("right").then(() => { this.playLocalAudio("diaoluo"); }); - this.box2d.getComponent(Box2d).jumpOrange(); + pg.event.emit("box2d_next") pg.event.emit("mouse_10_add"); } else { this.playLocalAudio("error").then(() => { @@ -250,16 +249,20 @@ export default class SceneComponent extends MyCocosSceneComponent { private checkRoundEnd() { Game.getIns().addPage(); if (!Game.getIns().getCurrentPage()) { - // this.gameOver(); - let zjz_ske = cc.find("zjz_ske", this.node); - zjz_ske.active = true; - zjz_ske.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1); - zjz_ske.off(dragonBones.EventObject.COMPLETE); - this.playLocalAudio("zhazhi"); - zjz_ske.getComponent(dragonBones.ArmatureDisplay).on(dragonBones.EventObject.COMPLETE, () => { - zjz_ske.active = false; - this.showFind(); - }, this); + pg.event.on("box2d_roll_successed", () => { + pg.event.emit("box2d_hide") + // this.gameOver(); + let zjz_ske = cc.find("zjz_ske", this.node); + zjz_ske.active = true; + zjz_ske.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1); + zjz_ske.off(dragonBones.EventObject.COMPLETE); + this.playLocalAudio("zhazhi"); + zjz_ske.getComponent(dragonBones.ArmatureDisplay).on(dragonBones.EventObject.COMPLETE, () => { + zjz_ske.active = false; + this.showFind(); + }, this); + }) + pg.event.emit("box2d_roll") } else { this.playLocalAudio("next"); this.record_word.getComponent(cc.Label).string = ""; @@ -290,6 +293,8 @@ export default class SceneComponent extends MyCocosSceneComponent { } private initStart() { + //ç”Ÿæˆæ©˜å + pg.event.emit('box2d_init', Game.getIns().getTotalPageNum()) this.layout_start.active = true; cc.find("layout_top/label_title", this.node).getComponent(cc.Label).string = Game.getIns().title; pg.event.emit("mouse_10_num", Game.getIns().total); diff --git a/creator.d.ts b/creator.d.ts index baca55f076a9074fabbb3debdba9a19f1ccd315a..4c5667169ac4920557ed7ce2c96e0a42718a3a7a 100644 --- a/creator.d.ts +++ b/creator.d.ts @@ -4588,6 +4588,7 @@ declare namespace cc { /** !#en Returns a normalized vector representing the forward direction (Z axis) of the node in world space. !#zh 获å–节点æ£å‰æ–¹ï¼ˆz 轴)é¢å¯¹çš„æ–¹å‘ï¼Œè¿”å›žå€¼ä¸ºä¸–ç•Œåæ ‡ç³»ä¸‹çš„归一化å‘é‡ */ forward: Vec3; + data: number; /** @param name name