Commit 773fa130 authored by yu's avatar yu

8.17调整

parent 07d69699
......@@ -3887,8 +3887,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5,
30,
0,
0,
0,
0,
0,
......@@ -3969,7 +3969,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 760,
"width": 745,
"height": 250.39999999999998
},
"_anchorPoint": {
......@@ -3982,7 +3982,7 @@
"ctor": "Float64Array",
"array": [
0,
67.265,
19,
0,
0,
0,
......@@ -4035,7 +4035,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 3,
"_N$cacheMode": 0,
......@@ -4082,7 +4082,7 @@
"ctor": "Float64Array",
"array": [
0,
-135.598,
-171.598,
0,
0,
0,
......@@ -4246,7 +4246,7 @@
"ctor": "Float64Array",
"array": [
0,
52.84,
35.84,
0,
0,
0,
......
......@@ -114,11 +114,13 @@ export default class layout_game extends cc.Component {
data.touchRight = true;
this.rightNum++;
item.opacity = 0;
Game.getIns().player.addRight();
pg.audio.playAudioByUrl(data.audioUrl, () => {
let pag = Game.getIns().getCurrentPage()
if (!pag.checkMore || this.rightNum > 1) {
if (this.rightNum >= pag.rNum) {
Game.getIns().player.addRight();
this.layout_same.removeAllChildren();
cc.find("bg_ornament", this.node).active = false;
cc.find("bg_ornament2", this.node).active = false;
this.clickRight().then(() => {
pg.event.emit("game_time_over");
});
......@@ -131,7 +133,7 @@ export default class layout_game extends cc.Component {
this.wrongNum++;
pg.audio.playAudioByUrl(data.audioUrl);
this.clickError().then(() => {
if (this.wrongNum >= 2 || (Game.getIns().getCurrentPage().checkMore && this.rightNum >= 1)) {
if (this.wrongNum >= 2) {
pg.event.emit("game_time_over");
}
this.touch = false;
......
......@@ -199,11 +199,12 @@ export default class Game {
this.page += 1;
}
get getTotla() {
this.total = 0;
this.lists.forEach((item) => {
this.total += item.rNum;
})
return this.total;
return this.lists.length;
// this.total = 0;
// this.lists.forEach((item) => {
// this.total += item.rNum;
// })
// return this.total;
}
get isOver() {
return this.page > this.lists.length;
......
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