Commit 2ec53012 authored by yu's avatar yu

钻石数量

parent 8151b7ef
{"ver":"1.1.2","uuid":"dc093928-4a71-4fe9-bbe2-e85e54e2404e","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}} {
\ No newline at end of file "ver": "1.1.2",
"uuid": "dc093928-4a71-4fe9-bbe2-e85e54e2404e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -193,7 +193,7 @@ export default class layout_cannon extends cc.Component { ...@@ -193,7 +193,7 @@ export default class layout_cannon extends cc.Component {
bomb.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, () => { bomb.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, () => {
bomb.active = false; bomb.active = false;
this.rightNum++; this.rightNum++;
Game.getIns().player.addRight(); if (this.rightNum == 1) Game.getIns().player.addRight();
pg.audio.playAudioByUrl(data.audioUrl, () => { pg.audio.playAudioByUrl(data.audioUrl, () => {
if (!Game.getIns().getCurrentPage().checkMore || this.rightNum > 1) { if (!Game.getIns().getCurrentPage().checkMore || this.rightNum > 1) {
pg.event.emit("game_time_over"); pg.event.emit("game_time_over");
...@@ -211,7 +211,7 @@ export default class layout_cannon extends cc.Component { ...@@ -211,7 +211,7 @@ export default class layout_cannon extends cc.Component {
cc.tween(icon_shell).to(0.5, { y: -135 }).delay(1).call(() => { cc.tween(icon_shell).to(0.5, { y: -135 }).delay(1).call(() => {
icon_shell.active = false; icon_shell.active = false;
icon_shell.y = 0; icon_shell.y = 0;
if (this.wrongNum >= 2 ) {//|| (Game.getIns().getCurrentPage().checkMore && this.rightNum >= 1) if (this.wrongNum >= 2) {//|| (Game.getIns().getCurrentPage().checkMore && this.rightNum >= 1)
pg.event.emit("game_time_over"); pg.event.emit("game_time_over");
} }
this.touch = false; this.touch = false;
......
...@@ -198,14 +198,14 @@ export default class Game { ...@@ -198,14 +198,14 @@ export default class Game {
this.page += 1; this.page += 1;
} }
get getTotla() { get getTotla() {
let count = 0; // let count = 0;
this.data.forEach(item => { // this.data.forEach(item => {
item.options.forEach((op) => { // item.options.forEach((op) => {
if (op.right) count++; // if (op.right) count++;
}) // })
}); // });
return count; // return count;
// return this.data.length; return this.data.length;
} }
get isOver() { get isOver() {
return this.page > this.lists.length; 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