Commit 840f4ea2 authored by Tt's avatar Tt

NGT10提交

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