Commit 0184c1c6 authored by Tt's avatar Tt

bug修改完成

parent abe78598
...@@ -24,7 +24,9 @@ export default class NewClass extends cc.Component { ...@@ -24,7 +24,9 @@ export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
playBgm: boolean;
onLoad() { onLoad() {
this.playBgm = true;
this.initView(); this.initView();
this.initEvent(); this.initEvent();
} }
...@@ -44,14 +46,20 @@ export default class NewClass extends cc.Component { ...@@ -44,14 +46,20 @@ export default class NewClass extends cc.Component {
this.playLaba(); this.playLaba();
}); });
this.btn_laba.on(cc.Node.EventType.TOUCH_END, this.playLaba, this); this.btn_laba.on(cc.Node.EventType.TOUCH_END, this.playLaba, this);
this.btn_music.on(cc.Node.EventType.TOUCH_END, this.onTouchMusic, this);
} }
private gameStart() { private gameStart() {
if (this.playBgm) {
pg.audio.playBgmByUrl(Game.getIns().bgm);
}
this.countDown = Game.getIns().getCurrentPage().duration; this.countDown = Game.getIns().getCurrentPage().duration;
} }
private bg_round: cc.Node; private bg_round: cc.Node;
private btn_music: cc.Node;
private initView() { private initView() {
this.btn_laba = cc.find("btn_laba", this.node); this.btn_laba = cc.find("btn_laba", this.node);
this.bg_round = cc.find("bg_round", this.node); this.bg_round = cc.find("bg_round", this.node);
this.btn_music = pg.view.find(this, 'btn_music');
} }
private showRound() { private showRound() {
pg.view.visible(this.bg_round, true); pg.view.visible(this.bg_round, true);
...@@ -62,6 +70,18 @@ export default class NewClass extends cc.Component { ...@@ -62,6 +70,18 @@ export default class NewClass extends cc.Component {
.call(() => { pg.event.emit("game_start"); }) .call(() => { pg.event.emit("game_start"); })
.start(); .start();
} }
onTouchMusic() {
if (cc.audioEngine.isMusicPlaying()) {
cc.audioEngine.pauseMusic();
this.playBgm = false;
pg.view.visible(pg.view.find(this.btn_music, 'off'), true);
} else {
this.playBgm = true;
cc.audioEngine.resumeMusic();
pg.audio.playBgmByUrl(Game.getIns().bgm);
pg.view.visible(pg.view.find(this.btn_music, 'off'), false);
}
}
private intervalId; private intervalId;
private playing: boolean; private playing: boolean;
......
...@@ -46,9 +46,11 @@ export default class NewClass extends cc.Component { ...@@ -46,9 +46,11 @@ export default class NewClass extends cc.Component {
private list: Option[]; private list: Option[];
private fishs: cc.Node[]; private fishs: cc.Node[];
private holes: Array<any>; private holes: Array<any>;
private right: Array<Option>;
gameStart() { gameStart() {
//游戏开始。允许出鱼 //游戏开始。允许出鱼
let page = Game.getIns().getCurrentPage(); let page = Game.getIns().getCurrentPage();
this.right = [];
this.data = page; this.data = page;
let list = page.optionList.concat(); let list = page.optionList.concat();
list = JSON.parse(JSON.stringify(list)); list = JSON.parse(JSON.stringify(list));
...@@ -169,6 +171,7 @@ export default class NewClass extends cc.Component { ...@@ -169,6 +171,7 @@ export default class NewClass extends cc.Component {
mouse_right.active = false; mouse_right.active = false;
mouse_wrong.active = false; mouse_wrong.active = false;
this.playLocalAudio('out'); this.playLocalAudio('out');
cc.Tween.stopAllByTarget(mouse_normal);
cc.tween(mouse_normal).to(1, { y: endPos.y }).delay(3).to(1, { y: startPos.y }).call(() => { cc.tween(mouse_normal).to(1, { y: endPos.y }).delay(3).to(1, { y: startPos.y }).call(() => {
item.data = null item.data = null
}).start(); }).start();
...@@ -199,18 +202,24 @@ export default class NewClass extends cc.Component { ...@@ -199,18 +202,24 @@ export default class NewClass extends cc.Component {
} }
//开始点击 点击角色 //开始点击 点击角色
async onTouchItemNormal(item, isRobot) { async onTouchItemNormal(item, isRobot) {
if (this.touching) return;
// this.touching = true; // this.touching = true;
let data = item.data; let data = item.data;
if (!data) return;
if (data.touching) return;
if (this.right.some(op => op.id == data.id)) return;
data.touching = true;
let mouse_normal = pg.view.find(item, "mask/mouse_normal"); let mouse_normal = pg.view.find(item, "mask/mouse_normal");
let mouse_right = pg.view.find(item, "mask/mouse_right"); let mouse_right = pg.view.find(item, "mask/mouse_right");
let mouse_wrong = pg.view.find(item, "mask/mouse_wrong"); let mouse_wrong = pg.view.find(item, "mask/mouse_wrong");
// 点击之后判断对错。 // 点击之后判断对错。
Game.getIns().state = GAME_STATE.OVER;
this.stopAllAni();
if (data.right) { if (data.right) {
this.playLocalAudio('right'); this.playLocalAudio('right');
this.right.push(data);
let isOver = this.right.length >= Game.getIns().getCurrentPageRight()
if (isOver) {
Game.getIns().state = GAME_STATE.OVER;
this.stopAllAni();
}
mouse_normal.active = false; mouse_normal.active = false;
mouse_right.active = true; mouse_right.active = true;
mouse_wrong.active = false; mouse_wrong.active = false;
...@@ -218,14 +227,29 @@ export default class NewClass extends cc.Component { ...@@ -218,14 +227,29 @@ export default class NewClass extends cc.Component {
if (isRobot) { if (isRobot) {
this.robotAddOne(); this.robotAddOne();
} }
let startPos = cc.v2(10, -114);
this.playAddOne(item).then(() => { this.playAddOne(item).then(() => {
this.scaleTo0(); if (isOver) {
this.scaleTo0();
} else {
let orgPos = cc.v2(mouse_right);
cc.tween(mouse_normal).to(0.5, { y: startPos.y }).call(() => { }).start();
cc.tween(mouse_right).delay(1.5).to(0.5, { y: startPos.y }).call(() => {
mouse_right.x = orgPos.x;
mouse_right.y = orgPos.y;
mouse_right.active = false;
item.data.touching = false;
item.data = null
}).start();
}
if (isRobot) { if (isRobot) {
Game.getIns().robot.addScore(); Game.getIns().robot.addScore();
} else { } else {
Game.getIns().player.addScore(); Game.getIns().player.addScore();
} }
return pg.event.emit("game_time_over"); if (isOver) {
return pg.event.emit("game_time_over");
}
}) })
} else { } else {
this.playLocalAudio('error'); this.playLocalAudio('error');
...@@ -233,20 +257,27 @@ export default class NewClass extends cc.Component { ...@@ -233,20 +257,27 @@ export default class NewClass extends cc.Component {
mouse_right.active = false; mouse_right.active = false;
mouse_wrong.active = true; mouse_wrong.active = true;
let startPos = cc.v2(10, -114); let startPos = cc.v2(10, -114);
let nodes = this.node.children.filter(item => item.data); let orgPos = cc.v2(mouse_wrong);
nodes.forEach(node => { cc.tween(mouse_normal).to(0.5, { y: startPos.y }).call(() => {
cc.tween(pg.view.find(node, "mask/mouse_normal")).to(0.5, { y: startPos.y }).call(() => { // item.data = null
item.data = null }).start();
}).start(); cc.tween(mouse_wrong).delay(1.5).to(0.5, { y: startPos.y }).call(() => {
}) mouse_wrong.x = orgPos.x;
this.scheduleOnce(() => { mouse_wrong.y = orgPos.y;
if (isRobot) { mouse_wrong.active = false;
Game.getIns().robot.addError(); item.data.touching = false;
} else { item.data = null
Game.getIns().player.addError(); }).start();
} if (isRobot) {
return pg.event.emit("game_time_over"); Game.getIns().robot.addError();
}, 2) } else {
Game.getIns().player.addError();
}
// this.scheduleOnce(() => {
// // if (this.right >= Game.getIns().getCurrentPageRight()) {
// // return pg.event.emit("game_time_over");
// // }
// }, 1)
} }
} }
async onTouchItem(e) { async onTouchItem(e) {
...@@ -276,7 +307,9 @@ export default class NewClass extends cc.Component { ...@@ -276,7 +307,9 @@ export default class NewClass extends cc.Component {
} }
} }
getMouse() { getMouse() {
return this.list[Math.floor(Math.random() * this.list.length)] let list = this.list.filter(li => this.right.every(op => op.id != li.id))
list = JSON.parse(JSON.stringify(list));
return list[Math.floor(Math.random() * list.length)]
} }
getEmptyHole() { getEmptyHole() {
let list = this.node.children.filter(item => !item.data); let list = this.node.children.filter(item => !item.data);
......
...@@ -75,40 +75,40 @@ ...@@ -75,40 +75,40 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 47 "__id__": 49
}, },
{ {
"__id__": 49 "__id__": 51
}, },
{ {
"__id__": 63 "__id__": 65
}, },
{ {
"__id__": 120 "__id__": 122
}, },
{ {
"__id__": 143 "__id__": 151
}, },
{ {
"__id__": 153 "__id__": 161
}, },
{ {
"__id__": 159 "__id__": 167
}, },
{ {
"__id__": 175 "__id__": 183
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 177 "__id__": 185
}, },
{ {
"__id__": 178 "__id__": 186
}, },
{ {
"__id__": 179 "__id__": 187
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -269,10 +269,10 @@ ...@@ -269,10 +269,10 @@
"__id__": 6 "__id__": 6
}, },
{ {
"__id__": 11 "__id__": 13
}, },
{ {
"__id__": 14 "__id__": 16
} }
], ],
"_active": false, "_active": false,
...@@ -338,6 +338,9 @@ ...@@ -338,6 +338,9 @@
}, },
{ {
"__id__": 9 "__id__": 9
},
{
"__id__": 11
} }
], ],
"_active": true, "_active": true,
...@@ -485,7 +488,7 @@ ...@@ -485,7 +488,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "xuanxiang", "_name": "round",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 6 "__id__": 6
...@@ -543,7 +546,7 @@ ...@@ -543,7 +546,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "90j0myMXZHm5QJM1glgB7i" "_id": "bcjP+hirxODabweHw/hUbw"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -561,6 +564,99 @@ ...@@ -561,6 +564,99 @@
"_fontSize": 40, "_fontSize": 40,
"_lineHeight": 40, "_lineHeight": 40,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": {
"__uuid__": "8909837d-207b-4df3-9cd5-0197049059ed"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "99y1n4+eZEwr1CaeIaJmng"
},
{
"__type__": "cc.Node",
"_name": "xuanxiang",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
}
],
"_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": "90j0myMXZHm5QJM1glgB7i"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e" "__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
}, },
...@@ -585,7 +681,7 @@ ...@@ -585,7 +681,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 12 "__id__": 14
} }
], ],
"_active": true, "_active": true,
...@@ -643,13 +739,13 @@ ...@@ -643,13 +739,13 @@
"_name": "icon", "_name": "icon",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 11 "__id__": 13
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 13 "__id__": 15
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -705,7 +801,7 @@ ...@@ -705,7 +801,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 12 "__id__": 14
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -736,9 +832,6 @@ ...@@ -736,9 +832,6 @@
"__id__": 5 "__id__": 5
}, },
"_children": [ "_children": [
{
"__id__": 15
},
{ {
"__id__": 17 "__id__": 17
}, },
...@@ -783,6 +876,9 @@ ...@@ -783,6 +876,9 @@
}, },
{ {
"__id__": 45 "__id__": 45
},
{
"__id__": 47
} }
], ],
"_active": true, "_active": true,
...@@ -840,13 +936,13 @@ ...@@ -840,13 +936,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 18
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -902,7 +998,7 @@ ...@@ -902,7 +998,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 15 "__id__": 17
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -921,13 +1017,13 @@ ...@@ -921,13 +1017,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 18 "__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -983,7 +1079,7 @@ ...@@ -983,7 +1079,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 17 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1002,13 +1098,13 @@ ...@@ -1002,13 +1098,13 @@
"_name": "光波", "_name": "光波",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1064,7 +1160,7 @@ ...@@ -1064,7 +1160,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 21
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1083,13 +1179,13 @@ ...@@ -1083,13 +1179,13 @@
"_name": "联机结算", "_name": "联机结算",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1145,7 +1241,7 @@ ...@@ -1145,7 +1241,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1164,13 +1260,13 @@ ...@@ -1164,13 +1260,13 @@
"_name": "倒计时1", "_name": "倒计时1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1226,7 +1322,7 @@ ...@@ -1226,7 +1322,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1245,13 +1341,13 @@ ...@@ -1245,13 +1341,13 @@
"_name": "分数", "_name": "分数",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 28
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1307,7 +1403,7 @@ ...@@ -1307,7 +1403,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1326,13 +1422,13 @@ ...@@ -1326,13 +1422,13 @@
"_name": "失败", "_name": "失败",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 30
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1388,7 +1484,7 @@ ...@@ -1388,7 +1484,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 29
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1407,13 +1503,13 @@ ...@@ -1407,13 +1503,13 @@
"_name": "倒计时5-2", "_name": "倒计时5-2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1469,7 +1565,7 @@ ...@@ -1469,7 +1565,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1488,13 +1584,13 @@ ...@@ -1488,13 +1584,13 @@
"_name": "胜利", "_name": "胜利",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 34
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1550,7 +1646,7 @@ ...@@ -1550,7 +1646,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1569,13 +1665,13 @@ ...@@ -1569,13 +1665,13 @@
"_name": "gameover", "_name": "gameover",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1631,7 +1727,7 @@ ...@@ -1631,7 +1727,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1650,13 +1746,13 @@ ...@@ -1650,13 +1746,13 @@
"_name": "move", "_name": "move",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1712,7 +1808,7 @@ ...@@ -1712,7 +1808,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1731,13 +1827,13 @@ ...@@ -1731,13 +1827,13 @@
"_name": "vs", "_name": "vs",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1793,7 +1889,7 @@ ...@@ -1793,7 +1889,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 39
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1812,13 +1908,13 @@ ...@@ -1812,13 +1908,13 @@
"_name": "out", "_name": "out",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 40 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1874,7 +1970,7 @@ ...@@ -1874,7 +1970,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1893,13 +1989,13 @@ ...@@ -1893,13 +1989,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 42 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1955,7 +2051,7 @@ ...@@ -1955,7 +2051,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 41 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1974,13 +2070,13 @@ ...@@ -1974,13 +2070,13 @@
"_name": "right", "_name": "right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 44 "__id__": 46
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2036,7 +2132,7 @@ ...@@ -2036,7 +2132,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 43 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2055,13 +2151,13 @@ ...@@ -2055,13 +2151,13 @@
"_name": "add", "_name": "add",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 16
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 46 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2117,7 +2213,7 @@ ...@@ -2117,7 +2213,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 45 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2142,7 +2238,7 @@ ...@@ -2142,7 +2238,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 50
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2198,7 +2294,7 @@ ...@@ -2198,7 +2294,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 47 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2234,22 +2330,22 @@ ...@@ -2234,22 +2330,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 50 "__id__": 52
}, },
{ {
"__id__": 53 "__id__": 55
}, },
{ {
"__id__": 56 "__id__": 58
}, },
{ {
"__id__": 59 "__id__": 61
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2305,16 +2401,16 @@ ...@@ -2305,16 +2401,16 @@
"_name": "bg_sky", "_name": "bg_sky",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 51 "__id__": 53
}, },
{ {
"__id__": 52 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2370,7 +2466,7 @@ ...@@ -2370,7 +2466,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2402,7 +2498,7 @@ ...@@ -2402,7 +2498,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2429,16 +2525,16 @@ ...@@ -2429,16 +2525,16 @@
"_name": "bg_bg", "_name": "bg_bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 54 "__id__": 56
}, },
{ {
"__id__": 55 "__id__": 57
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2494,7 +2590,7 @@ ...@@ -2494,7 +2590,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2526,7 +2622,7 @@ ...@@ -2526,7 +2622,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2553,16 +2649,16 @@ ...@@ -2553,16 +2649,16 @@
"_name": "bg_front", "_name": "bg_front",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 57 "__id__": 59
}, },
{ {
"__id__": 58 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2618,7 +2714,7 @@ ...@@ -2618,7 +2714,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2650,7 +2746,7 @@ ...@@ -2650,7 +2746,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2677,16 +2773,16 @@ ...@@ -2677,16 +2773,16 @@
"_name": "bg_road", "_name": "bg_road",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 60 "__id__": 62
}, },
{ {
"__id__": 61 "__id__": 63
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2742,7 +2838,7 @@ ...@@ -2742,7 +2838,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2774,7 +2870,7 @@ ...@@ -2774,7 +2870,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2801,7 +2897,7 @@ ...@@ -2801,7 +2897,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 49 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2832,25 +2928,25 @@ ...@@ -2832,25 +2928,25 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 64 "__id__": 66
}, },
{ {
"__id__": 66 "__id__": 68
}, },
{ {
"__id__": 74 "__id__": 76
}, },
{ {
"__id__": 108 "__id__": 110
}, },
{ {
"__id__": 80 "__id__": 82
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 119 "__id__": 121
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2906,13 +3002,13 @@ ...@@ -2906,13 +3002,13 @@
"_name": "layout_fish", "_name": "layout_fish",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 65
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2968,23 +3064,23 @@ ...@@ -2968,23 +3064,23 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 66
}, },
"_enabled": true, "_enabled": true,
"res": { "res": {
"__id__": 5 "__id__": 5
}, },
"layout_player": { "layout_player": {
"__id__": 66 "__id__": 68
}, },
"layout_robot": { "layout_robot": {
"__id__": 74 "__id__": 76
}, },
"item": { "item": {
"__id__": 80 "__id__": 82
}, },
"layout_card": { "layout_card": {
"__id__": 108 "__id__": 110
}, },
"_id": "df0dbbmsVPMLnMZFIH2QVh" "_id": "df0dbbmsVPMLnMZFIH2QVh"
}, },
...@@ -2993,23 +3089,23 @@ ...@@ -2993,23 +3089,23 @@
"_name": "layout_player", "_name": "layout_player",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 65
}, },
"_children": [ "_children": [
{
"__id__": 67
},
{ {
"__id__": 69 "__id__": 69
}, },
{ {
"__id__": 71 "__id__": 71
},
{
"__id__": 73
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 75
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3065,13 +3161,13 @@ ...@@ -3065,13 +3161,13 @@
"_name": "wave", "_name": "wave",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 70
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3127,7 +3223,7 @@ ...@@ -3127,7 +3223,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3159,13 +3255,13 @@ ...@@ -3159,13 +3255,13 @@
"_name": "player", "_name": "player",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 70 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3221,7 +3317,7 @@ ...@@ -3221,7 +3317,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 71
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3253,13 +3349,13 @@ ...@@ -3253,13 +3349,13 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 72 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3315,7 +3411,7 @@ ...@@ -3315,7 +3411,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 71 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3347,7 +3443,7 @@ ...@@ -3347,7 +3443,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 66 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3374,20 +3470,20 @@ ...@@ -3374,20 +3470,20 @@
"_name": "layout_robot", "_name": "layout_robot",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 65
}, },
"_children": [ "_children": [
{ {
"__id__": 75 "__id__": 77
}, },
{ {
"__id__": 77 "__id__": 79
} }
], ],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 81
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3443,13 +3539,13 @@ ...@@ -3443,13 +3539,13 @@
"_name": "player", "_name": "player",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 74 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 76 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3505,7 +3601,7 @@ ...@@ -3505,7 +3601,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 75 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3537,13 +3633,13 @@ ...@@ -3537,13 +3633,13 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 74 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 78 "__id__": 80
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3599,7 +3695,7 @@ ...@@ -3599,7 +3695,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 77 "__id__": 79
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3631,7 +3727,7 @@ ...@@ -3631,7 +3727,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 76
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3658,20 +3754,20 @@ ...@@ -3658,20 +3754,20 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 65
}, },
"_children": [ "_children": [
{
"__id__": 81
},
{ {
"__id__": 83 "__id__": 83
}, },
{ {
"__id__": 104 "__id__": 85
}, },
{ {
"__id__": 106 "__id__": 106
},
{
"__id__": 108
} }
], ],
"_active": false, "_active": false,
...@@ -3729,13 +3825,13 @@ ...@@ -3729,13 +3825,13 @@
"_name": "bg_hole", "_name": "bg_hole",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 82 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3791,7 +3887,7 @@ ...@@ -3791,7 +3887,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 83
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3823,23 +3919,23 @@ ...@@ -3823,23 +3919,23 @@
"_name": "mask", "_name": "mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [ "_children": [
{ {
"__id__": 84 "__id__": 86
}, },
{ {
"__id__": 91 "__id__": 93
}, },
{ {
"__id__": 97 "__id__": 99
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 103 "__id__": 105
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3895,23 +3991,23 @@ ...@@ -3895,23 +3991,23 @@
"_name": "mouse_normal", "_name": "mouse_normal",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 83 "__id__": 85
}, },
"_children": [ "_children": [
{ {
"__id__": 85 "__id__": 87
}, },
{ {
"__id__": 87 "__id__": 89
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 91
}, },
{ {
"__id__": 90 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3967,13 +4063,13 @@ ...@@ -3967,13 +4063,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 84 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 86 "__id__": 88
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4029,7 +4125,7 @@ ...@@ -4029,7 +4125,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 85 "__id__": 87
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4061,22 +4157,22 @@ ...@@ -4061,22 +4157,22 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 84 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 218,
"g": 0, "g": 99,
"b": 0, "b": 119,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4094,7 +4190,7 @@ ...@@ -4094,7 +4190,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-51.688, -52,
0, 0,
0, 0,
0, 0,
...@@ -4123,7 +4219,7 @@ ...@@ -4123,7 +4219,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 89
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4135,8 +4231,8 @@ ...@@ -4135,8 +4231,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "Label",
"_N$string": "Label", "_N$string": "Label",
"_fontSize": 40, "_fontSize": 60,
"_lineHeight": 40, "_lineHeight": 60,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e" "__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...@@ -4158,7 +4254,7 @@ ...@@ -4158,7 +4254,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 84 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4190,7 +4286,7 @@ ...@@ -4190,7 +4286,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 84 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4251,7 +4347,7 @@ ...@@ -4251,7 +4347,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 84 "__id__": 86
}, },
"_id": "14XitHo2FB2bRnNy6Yrvaj" "_id": "14XitHo2FB2bRnNy6Yrvaj"
}, },
...@@ -4260,20 +4356,20 @@ ...@@ -4260,20 +4356,20 @@
"_name": "mouse_right", "_name": "mouse_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 83 "__id__": 85
}, },
"_children": [ "_children": [
{ {
"__id__": 92 "__id__": 94
}, },
{ {
"__id__": 94 "__id__": 96
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4329,13 +4425,13 @@ ...@@ -4329,13 +4425,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 91 "__id__": 93
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 95
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4391,7 +4487,7 @@ ...@@ -4391,7 +4487,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 92 "__id__": 94
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4423,22 +4519,22 @@ ...@@ -4423,22 +4519,22 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 91 "__id__": 93
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 97
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 218,
"g": 0, "g": 99,
"b": 0, "b": 119,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4456,7 +4552,7 @@ ...@@ -4456,7 +4552,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-62.508, -63,
0, 0,
0, 0,
0, 0,
...@@ -4478,14 +4574,14 @@ ...@@ -4478,14 +4574,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "8dGpuVV3lAVa0vBFT+bUyZ" "_id": "1fURhPaytPvK4cJico5LdP"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4497,8 +4593,8 @@ ...@@ -4497,8 +4593,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "Label",
"_N$string": "Label", "_N$string": "Label",
"_fontSize": 40, "_fontSize": 60,
"_lineHeight": 40, "_lineHeight": 60,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e" "__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...@@ -4513,14 +4609,14 @@ ...@@ -4513,14 +4609,14 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 2, "_N$overflow": 2,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "7f4e4rN1VFN6lQGRiGa9aA" "_id": "49s1h6X8tJtpXkR3LzYS43"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 91 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4552,20 +4648,20 @@ ...@@ -4552,20 +4648,20 @@
"_name": "mouse_wrong", "_name": "mouse_wrong",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 83 "__id__": 85
}, },
"_children": [ "_children": [
{ {
"__id__": 98 "__id__": 100
}, },
{ {
"__id__": 100 "__id__": 102
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 102 "__id__": 104
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4621,13 +4717,13 @@ ...@@ -4621,13 +4717,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 99
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 99 "__id__": 101
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4683,7 +4779,7 @@ ...@@ -4683,7 +4779,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 98 "__id__": 100
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4715,22 +4811,22 @@ ...@@ -4715,22 +4811,22 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 99
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 101 "__id__": 103
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 218,
"g": 0, "g": 99,
"b": 0, "b": 119,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -4748,7 +4844,7 @@ ...@@ -4748,7 +4844,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-51.793, -52,
0, 0,
0, 0,
0, 0,
...@@ -4770,14 +4866,14 @@ ...@@ -4770,14 +4866,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "facxHlgAlDLpQw/NXokc/G" "_id": "ceFnGtuS1JkZ8YHKWAsNzp"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 102
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4789,8 +4885,8 @@ ...@@ -4789,8 +4885,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "Label",
"_N$string": "Label", "_N$string": "Label",
"_fontSize": 40, "_fontSize": 60,
"_lineHeight": 40, "_lineHeight": 60,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e" "__uuid__": "ddfa36c2-ae4f-415a-830f-024b94bed73e"
...@@ -4805,14 +4901,14 @@ ...@@ -4805,14 +4901,14 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 2, "_N$overflow": 2,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "3f75mg+M9O7b36rHRVodIk" "_id": "e5MQB3C9NDMaLIX5ihC7yy"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4844,7 +4940,7 @@ ...@@ -4844,7 +4940,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4864,13 +4960,13 @@ ...@@ -4864,13 +4960,13 @@
"_name": "img_add", "_name": "img_add",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 105 "__id__": 107
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4926,7 +5022,7 @@ ...@@ -4926,7 +5022,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 104 "__id__": 106
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4958,13 +5054,13 @@ ...@@ -4958,13 +5054,13 @@
"_name": "bg_hole-front", "_name": "bg_hole-front",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 107 "__id__": 109
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5020,7 +5116,7 @@ ...@@ -5020,7 +5116,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 108
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5052,20 +5148,20 @@ ...@@ -5052,20 +5148,20 @@
"_name": "layout_card", "_name": "layout_card",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 65
}, },
"_children": [ "_children": [
{ {
"__id__": 109 "__id__": 111
}, },
{ {
"__id__": 115 "__id__": 117
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 118 "__id__": 120
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5121,17 +5217,17 @@ ...@@ -5121,17 +5217,17 @@
"_name": "bg_card_cover", "_name": "bg_card_cover",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 108 "__id__": 110
}, },
"_children": [ "_children": [
{ {
"__id__": 110 "__id__": 112
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 114 "__id__": 116
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5187,17 +5283,17 @@ ...@@ -5187,17 +5283,17 @@
"_name": "bg_card", "_name": "bg_card",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 109 "__id__": 111
}, },
"_children": [ "_children": [
{ {
"__id__": 111 "__id__": 113
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 115
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5253,13 +5349,13 @@ ...@@ -5253,13 +5349,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 110 "__id__": 112
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 112 "__id__": 114
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5315,7 +5411,7 @@ ...@@ -5315,7 +5411,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 111 "__id__": 113
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5347,7 +5443,7 @@ ...@@ -5347,7 +5443,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 110 "__id__": 112
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5379,7 +5475,7 @@ ...@@ -5379,7 +5475,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 109 "__id__": 111
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5411,16 +5507,16 @@ ...@@ -5411,16 +5507,16 @@
"_name": "bg_card_small", "_name": "bg_card_small",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 108 "__id__": 110
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 116 "__id__": 118
}, },
{ {
"__id__": 117 "__id__": 119
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5476,7 +5572,7 @@ ...@@ -5476,7 +5572,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 115 "__id__": 117
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5508,7 +5604,7 @@ ...@@ -5508,7 +5604,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 115 "__id__": 117
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5535,7 +5631,7 @@ ...@@ -5535,7 +5631,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 108 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5562,7 +5658,7 @@ ...@@ -5562,7 +5658,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5593,22 +5689,25 @@ ...@@ -5593,22 +5689,25 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 121 "__id__": 123
}, },
{ {
"__id__": 126 "__id__": 128
}, },
{ {
"__id__": 134 "__id__": 136
},
{
"__id__": 142
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 141 "__id__": 149
}, },
{ {
"__id__": 142 "__id__": 150
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5664,20 +5763,20 @@ ...@@ -5664,20 +5763,20 @@
"_name": "bg_title", "_name": "bg_title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 120 "__id__": 122
}, },
"_children": [ "_children": [
{ {
"__id__": 122 "__id__": 124
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 124 "__id__": 126
}, },
{ {
"__id__": 125 "__id__": 127
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5733,13 +5832,13 @@ ...@@ -5733,13 +5832,13 @@
"_name": "title", "_name": "title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 121 "__id__": 123
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 123 "__id__": 125
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5795,7 +5894,7 @@ ...@@ -5795,7 +5894,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 122 "__id__": 124
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5830,7 +5929,7 @@ ...@@ -5830,7 +5929,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 121 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5862,7 +5961,7 @@ ...@@ -5862,7 +5961,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 121 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5889,23 +5988,23 @@ ...@@ -5889,23 +5988,23 @@
"_name": "btn_laba", "_name": "btn_laba",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 120 "__id__": 122
}, },
"_children": [ "_children": [
{
"__id__": 127
},
{ {
"__id__": 129 "__id__": 129
}, },
{ {
"__id__": 131 "__id__": 131
},
{
"__id__": 133
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 133 "__id__": 135
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5961,13 +6060,13 @@ ...@@ -5961,13 +6060,13 @@
"_name": "btn_laba1", "_name": "btn_laba1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 128
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 128 "__id__": 130
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6023,7 +6122,7 @@ ...@@ -6023,7 +6122,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 127 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6055,13 +6154,13 @@ ...@@ -6055,13 +6154,13 @@
"_name": "btn_laba2", "_name": "btn_laba2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 128
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 130 "__id__": 132
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6117,7 +6216,7 @@ ...@@ -6117,7 +6216,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 129 "__id__": 131
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6149,13 +6248,13 @@ ...@@ -6149,13 +6248,13 @@
"_name": "btn_laba3", "_name": "btn_laba3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 128
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 132 "__id__": 134
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6211,7 +6310,7 @@ ...@@ -6211,7 +6310,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 131 "__id__": 133
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6243,7 +6342,7 @@ ...@@ -6243,7 +6342,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 126 "__id__": 128
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -6267,18 +6366,28 @@ ...@@ -6267,18 +6366,28 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg_round", "_name": "btn_music",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 120 "__id__": 122
}, },
"_children": [ "_children": [
{ {
"__id__": 135 "__id__": 137
}
],
"_active": true,
"_components": [
{
"__id__": 139
},
{
"__id__": 140
},
{
"__id__": 141
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -6290,8 +6399,8 @@ ...@@ -6290,8 +6399,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 332, "width": 92,
"height": 111 "height": 92
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -6302,8 +6411,8 @@ ...@@ -6302,8 +6411,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -579.484,
0, -311.456,
0, 0,
0, 0,
0, 0,
...@@ -6325,24 +6434,20 @@ ...@@ -6325,24 +6434,20 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "f0cEZ+hE1ObqCtqcMpL7I9" "_id": "00rmhFm71D64OZ1Hi6nm4B"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "off",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 134 "__id__": 136
}, },
"_children": [ "_children": [],
{ "_active": false,
"__id__": 136
}
],
"_active": true,
"_components": [ "_components": [
{ {
"__id__": 140 "__id__": 138
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6356,8 +6461,8 @@ ...@@ -6356,8 +6461,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 290, "width": 92,
"height": 94 "height": 92
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -6368,8 +6473,8 @@ ...@@ -6368,8 +6473,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-61.163, 0,
-13.973, 0,
0, 0,
0, 0,
0, 0,
...@@ -6391,26 +6496,315 @@ ...@@ -6391,26 +6496,315 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0fAjkFy7lECLAqZlQvspjc" "_id": "d5eBBRuS5EgK6VbDdqf9iJ"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Sprite",
"_name": "desc", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 135 "__id__": 137
}, },
"_children": [], "_enabled": true,
"_active": true, "_materials": [
"_components": [
{ {
"__id__": 137 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "048ffa59-1b61-4d6d-b6eb-477e924ed65c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b8odKU/GNNcJ3RK41u5QGL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7e3dddca-a078-4521-a0e3-0d071756833a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59ul9wOU5Ig5rJDoP+DLNL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 41.51599999999996,
"_right": 0,
"_top": 0,
"_bottom": 17.543999999999983,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "efbJ69OehH7Z9qQnZ7cn1k"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 136
},
"_id": "19qMu/KdNDp76E3nnceMm1"
},
{
"__type__": "cc.Node",
"_name": "bg_round",
"_objFlags": 0,
"_parent": {
"__id__": 122
},
"_children": [
{
"__id__": 143
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 332,
"height": 111
},
"_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": "f0cEZ+hE1ObqCtqcMpL7I9"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 142
},
"_children": [
{
"__id__": 144
}
],
"_active": true,
"_components": [
{
"__id__": 148
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 290,
"height": 94
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-61.163,
-13.973,
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": "0fAjkFy7lECLAqZlQvspjc"
},
{
"__type__": "cc.Node",
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 143
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 145
}, },
{ {
"__id__": 138 "__id__": 146
}, },
{ {
"__id__": 139 "__id__": 147
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6466,7 +6860,7 @@ ...@@ -6466,7 +6860,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 136 "__id__": 144
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6482,7 +6876,7 @@ ...@@ -6482,7 +6876,7 @@
"_lineHeight": 100, "_lineHeight": 100,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "e38b0407-6f35-404f-8162-6008a4606cd8" "__uuid__": "8909837d-207b-4df3-9cd5-0197049059ed"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
...@@ -6501,7 +6895,7 @@ ...@@ -6501,7 +6895,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 136 "__id__": 144
}, },
"_enabled": true, "_enabled": true,
"_color": { "_color": {
...@@ -6519,12 +6913,12 @@ ...@@ -6519,12 +6913,12 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 136 "__id__": 144
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": { "_target": {
"__id__": 135 "__id__": 143
}, },
"_alignFlags": 32, "_alignFlags": 32,
"_left": 0, "_left": 0,
...@@ -6548,7 +6942,7 @@ ...@@ -6548,7 +6942,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 135 "__id__": 143
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6580,7 +6974,7 @@ ...@@ -6580,7 +6974,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 122
}, },
"_enabled": true, "_enabled": true,
"label": null, "label": null,
...@@ -6592,7 +6986,7 @@ ...@@ -6592,7 +6986,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 122
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -6623,19 +7017,19 @@ ...@@ -6623,19 +7017,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 144 "__id__": 152
}, },
{ {
"__id__": 146 "__id__": 154
}, },
{ {
"__id__": 148 "__id__": 156
}, },
{ {
"__id__": 150 "__id__": 158
} }
], ],
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -6690,13 +7084,13 @@ ...@@ -6690,13 +7084,13 @@
"_name": "New Sprite(Splash)", "_name": "New Sprite(Splash)",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 143 "__id__": 151
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 145 "__id__": 153
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6752,7 +7146,7 @@ ...@@ -6752,7 +7146,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 144 "__id__": 152
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6784,13 +7178,13 @@ ...@@ -6784,13 +7178,13 @@
"_name": "bg_di", "_name": "bg_di",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 143 "__id__": 151
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 147 "__id__": 155
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6846,7 +7240,7 @@ ...@@ -6846,7 +7240,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 146 "__id__": 154
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6878,13 +7272,13 @@ ...@@ -6878,13 +7272,13 @@
"_name": "desc", "_name": "desc",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 143 "__id__": 151
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 149 "__id__": 157
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6899,7 +7293,7 @@ ...@@ -6899,7 +7293,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 800, "width": 800,
"height": 262.92 "height": 304.92
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -6940,7 +7334,7 @@ ...@@ -6940,7 +7334,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 148 "__id__": 156
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6950,8 +7344,8 @@ ...@@ -6950,8 +7344,8 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "海洋里有很多鱼,仔细观察每条鱼,身上都藏着魔法信息!亲爱的小玩家,请仔细听游戏指令,找到含有正确魔法信息的鱼,快速完成钓鱼。\n在本次的游戏中,你将和其他玩家进行PK,游戏结束,钓鱼数量最多的玩家,将获得胜利。最后根据钓鱼的数量,你将获得相应的能量石奖励!", "_string": "调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!",
"_N$string": "海洋里有很多鱼,仔细观察每条鱼,身上都藏着魔法信息!亲爱的小玩家,请仔细听游戏指令,找到含有正确魔法信息的鱼,快速完成钓鱼。\n在本次的游戏中,你将和其他玩家进行PK,游戏结束,钓鱼数量最多的玩家,将获得胜利。最后根据钓鱼的数量,你将获得相应的能量石奖励!", "_N$string": "调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!",
"_fontSize": 35, "_fontSize": 35,
"_lineHeight": 42, "_lineHeight": 42,
"_enableWrapText": true, "_enableWrapText": true,
...@@ -6975,16 +7369,16 @@ ...@@ -6975,16 +7369,16 @@
"_name": "btn_start", "_name": "btn_start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 143 "__id__": 151
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 151 "__id__": 159
}, },
{ {
"__id__": 152 "__id__": 160
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7040,7 +7434,7 @@ ...@@ -7040,7 +7434,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 150 "__id__": 158
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7072,7 +7466,7 @@ ...@@ -7072,7 +7466,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 150 "__id__": 158
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -7144,16 +7538,16 @@ ...@@ -7144,16 +7538,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 154 "__id__": 162
}, },
{ {
"__id__": 156 "__id__": 164
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 158 "__id__": 166
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7209,13 +7603,13 @@ ...@@ -7209,13 +7603,13 @@
"_name": "touch", "_name": "touch",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 153 "__id__": 161
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 155 "__id__": 163
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7271,7 +7665,7 @@ ...@@ -7271,7 +7665,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 154 "__id__": 162
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -7339,13 +7733,13 @@ ...@@ -7339,13 +7733,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 153 "__id__": 161
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 157 "__id__": 165
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7401,7 +7795,7 @@ ...@@ -7401,7 +7795,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 156 "__id__": 164
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7434,7 +7828,7 @@ ...@@ -7434,7 +7828,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 153 "__id__": 161
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7470,25 +7864,25 @@ ...@@ -7470,25 +7864,25 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 160 "__id__": 168
}, },
{ {
"__id__": 163 "__id__": 171
}, },
{ {
"__id__": 166 "__id__": 174
}, },
{ {
"__id__": 169 "__id__": 177
}, },
{ {
"__id__": 172 "__id__": 180
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 174 "__id__": 182
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7544,16 +7938,16 @@ ...@@ -7544,16 +7938,16 @@
"_name": "New Sprite(Splash)", "_name": "New Sprite(Splash)",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 159 "__id__": 167
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 161 "__id__": 169
}, },
{ {
"__id__": 162 "__id__": 170
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7609,7 +8003,7 @@ ...@@ -7609,7 +8003,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 160 "__id__": 168
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7641,7 +8035,7 @@ ...@@ -7641,7 +8035,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 160 "__id__": 168
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -7668,16 +8062,16 @@ ...@@ -7668,16 +8062,16 @@
"_name": "bg_vs", "_name": "bg_vs",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 159 "__id__": 167
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 164 "__id__": 172
}, },
{ {
"__id__": 165 "__id__": 173
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7733,7 +8127,7 @@ ...@@ -7733,7 +8127,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 163 "__id__": 171
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7765,7 +8159,7 @@ ...@@ -7765,7 +8159,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 163 "__id__": 171
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -7792,16 +8186,16 @@ ...@@ -7792,16 +8186,16 @@
"_name": "player1", "_name": "player1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 159 "__id__": 167
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 167 "__id__": 175
}, },
{ {
"__id__": 168 "__id__": 176
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7857,7 +8251,7 @@ ...@@ -7857,7 +8251,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 166 "__id__": 174
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -7889,7 +8283,7 @@ ...@@ -7889,7 +8283,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 166 "__id__": 174
}, },
"_enabled": false, "_enabled": false,
"alignMode": 1, "alignMode": 1,
...@@ -7916,16 +8310,16 @@ ...@@ -7916,16 +8310,16 @@
"_name": "player2", "_name": "player2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 159 "__id__": 167
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 170 "__id__": 178
}, },
{ {
"__id__": 171 "__id__": 179
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7981,7 +8375,7 @@ ...@@ -7981,7 +8375,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 169 "__id__": 177
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -8013,7 +8407,7 @@ ...@@ -8013,7 +8407,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 169 "__id__": 177
}, },
"_enabled": false, "_enabled": false,
"alignMode": 1, "alignMode": 1,
...@@ -8040,13 +8434,13 @@ ...@@ -8040,13 +8434,13 @@
"_name": "icon_vs", "_name": "icon_vs",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 159 "__id__": 167
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 173 "__id__": 181
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -8102,7 +8496,7 @@ ...@@ -8102,7 +8496,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 172 "__id__": 180
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -8134,7 +8528,7 @@ ...@@ -8134,7 +8528,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 159 "__id__": 167
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -8167,7 +8561,7 @@ ...@@ -8167,7 +8561,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 176 "__id__": 184
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -8223,7 +8617,7 @@ ...@@ -8223,7 +8617,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 175 "__id__": 183
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
......
...@@ -113,27 +113,24 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -113,27 +113,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
.call(() => { pg.event.emit("show_round_action"); vs.active = false; }).start(); .call(() => { pg.event.emit("show_round_action"); vs.active = false; }).start();
} }
private showGameOver() { private showGameOver() {
let gameover = cc.find("gameover", this.node); let player = {
gameover.scale = 3; right: Game.getIns().player.score,
gameover.active = true; error: Game.getIns().player.error,
this.playLocalAudio("gameover"); stone: Math.floor(10 * Game.getIns().player.score / Game.getIns().total)
cc.tween(gameover).to(0.3, { scale: 1 }) }
.delay(2) let robot = {
.call(() => { right: Game.getIns().robot.score,
gameover.active = false; error: Game.getIns().robot.error,
//发送给上端最后的数据 stone: Math.floor(10 * Game.getIns().robot.score / Game.getIns().total)
// alert("game_finish") }
let player = { right: Game.getIns().player.score, error: Game.getIns().player.error } let totalNumber = Game.getIns().totalNumber;
let robot = { right: Game.getIns().robot.score, error: Game.getIns().robot.error } if (Game.getIns().singleGame) {
let totalNumber = Game.getIns().totalNumber; onHomeworkFinish({ player, totalNumber })
if (Game.getIns().singleGame) { } else {
onHomeworkFinish({ player, totalNumber }) onHomeworkFinish({ player, robot, totalNumber })
} else { }
onHomeworkFinish({ player, robot, totalNumber }) this.log("player: " + JSON.stringify(player));
} this.log("totalNumber: " + totalNumber)
this.log("player: " + JSON.stringify(player));
this.log("totalNumber: " + totalNumber)
}).start();
} }
playLocalAudio(audioName) { playLocalAudio(audioName) {
......
...@@ -109,9 +109,11 @@ export default class Game { ...@@ -109,9 +109,11 @@ export default class Game {
private data: any; private data: any;
private lists: Array<Item> private lists: Array<Item>
public player: Player; public player: Player;
public robot: Robot; public robot: Robot;
public state: GAME_STATE; public state: GAME_STATE;
public totalNumber: number; public totalNumber: number;
public bgm: string;
constructor() { constructor() {
this.start = false; this.start = false;
...@@ -133,6 +135,7 @@ export default class Game { ...@@ -133,6 +135,7 @@ export default class Game {
this.title = data.title; this.title = data.title;
this.start = false; this.start = false;
this.lists = []; this.lists = [];
this.bgm = data.bgAudio;
this.data = data.questions; this.data = data.questions;
} }
public start: boolean; public start: boolean;
...@@ -166,7 +169,13 @@ export default class Game { ...@@ -166,7 +169,13 @@ export default class Game {
} }
return true; return true;
} }
get total() {
let m = 0;
this.lists.forEach(ques => {
m += ques.optionList.filter(op => op.right).length;
})
return m;
}
getDataByPage(page): Item { getDataByPage(page): Item {
if (!this.lists) return null; if (!this.lists) return null;
...@@ -177,6 +186,10 @@ export default class Game { ...@@ -177,6 +186,10 @@ export default class Game {
let page = this.page; let page = this.page;
return this.lists.filter(li => li.page == page)[0] return this.lists.filter(li => li.page == page)[0]
} }
getCurrentPageRight() {
let page = this.getCurrentPage();
return page.optionList.filter(op => op.right).length;
}
getTotalPageNum() { getTotalPageNum() {
return this.lists.length; return this.lists.length;
} }
......
...@@ -482,6 +482,15 @@ let pg = { ...@@ -482,6 +482,15 @@ let pg = {
} }
}, },
audio: { audio: {
playBgmByUrl(audio_url) {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(0);
cc.assetManager.loadRemote(audio_url, (err, audioClip: any) => {
const audioId = cc.audioEngine.playMusic(audioClip, true);
resolve(audioId);
});
});
},
playAudioByUrl(audio_url) { playAudioByUrl(audio_url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!audio_url) return resolve(0); if (!audio_url) return resolve(0);
......
...@@ -18,9 +18,16 @@ export const defaultData = ...@@ -18,9 +18,16 @@ export const defaultData =
"type": "txt", "image": "", "type": "txt", "image": "",
"audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "xfuw", "right": false, "audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "xfuw", "right": false,
"audioName": "冒出.mp3" "audioName": "冒出.mp3"
}, { "type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3", "text": "head", "right": true, "audioName": "错误.mp3" }, { "type": "img", "image": "http://staging-teach.cdn.ireadabc.com/fc1d670c1a3461136506195e3e9e3797.png", "audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "", "right": false, "audioName": "冒出.mp3" }], },
"questionImg": "http://staging-teach.cdn.ireadabc.com/317ef6895381d2f926a0d444326a5995.png", {
"type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3", "text": "head",
"right": true, "audioName": "错误.mp3"
}, {
"type": "img", "image": "http://staging-teach.cdn.ireadabc.com/fc1d670c1a3461136506195e3e9e3797.png", "audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "", "right": false, "audioName": "冒出.mp3"
}],
"questionImg": "http://staging-teach.cdn.ireadabc.com/317ef6895381d2f926a0d444326a5995.png",
"audioName": "胜利.mp3" "audioName": "胜利.mp3"
}, { "questionAudio": "http://staging-teach.cdn.ireadabc.com/26e6e997562503a98918fadab7e7b6c2_l.mp3", "duration": 120, "options": [{ "type": "img", "image": "http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png", "audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "", "right": true, "audioName": "冒出.mp3" }, { "type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3", "text": "eye", "right": true, "audioName": "错误.mp3" }, { "type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/f03e207cb6808b17c1510b230a70bb1d_l.mp3", "text": "fffsxz", "right": false, "audioName": "加分.mp3" }, { "type": "img", "image": "http://staging-teach.cdn.ireadabc.com/01247e69d70b995da41e6b7e2000b540.png", "audio": "http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3", "text": "", "right": false, "audioName": "按钮.mp3" }], "questionImg": "http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png", "audioName": "失败.mp3" }], }, { "questionAudio": "http://staging-teach.cdn.ireadabc.com/26e6e997562503a98918fadab7e7b6c2_l.mp3", "duration": 120, "options": [{ "type": "img", "image": "http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png", "audio": "http://staging-teach.cdn.ireadabc.com/7432c9bfa754a4c9db54132308e8ce1f_l.mp3", "text": "", "right": true, "audioName": "冒出.mp3" }, { "type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/274d8965edafabf1e8d1a01400db82b7_l.mp3", "text": "eye", "right": true, "audioName": "错误.mp3" }, { "type": "txt", "image": "", "audio": "http://staging-teach.cdn.ireadabc.com/f03e207cb6808b17c1510b230a70bb1d_l.mp3", "text": "fffsxz", "right": false, "audioName": "加分.mp3" }, { "type": "img", "image": "http://staging-teach.cdn.ireadabc.com/01247e69d70b995da41e6b7e2000b540.png", "audio": "http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3", "text": "", "right": false, "audioName": "按钮.mp3" }], "questionImg": "http://staging-teach.cdn.ireadabc.com/fea420e83bd2ba03d014c279de780599.png", "audioName": "失败.mp3" }],
"audioName": "头像移动.mp3", "bgAudio": "http://staging-teach.cdn.ireadabc.com/93bb9ed985cff104879f4b4fa6ace4ea_l.mp3" "audioName": "头像移动.mp3",
"bgAudio": "http://staging-teach.cdn.ireadabc.com/93bb9ed985cff104879f4b4fa6ace4ea_l.mp3"
} }
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "8909837d-207b-4df3-9cd5-0197049059ed",
"subMetas": {}
}
\ No newline at end of file
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