Add: add bonus time to card matching

This commit is contained in:
2018-11-02 10:29:07 +09:00
parent 5f82d6ccae
commit 1c42c88f2f
3 changed files with 15 additions and 8 deletions
+7 -2
View File
@@ -474,8 +474,11 @@ var Game = {
checkStageCleared: function() {
this.clearedCardCount += 2;
if(this.activatedCardCount == this.clearedCardCount)
if(this.activatedCardCount == this.clearedCardCount) {
this.stageTimer.addBonusTime(this.getBonusTime());
this.startNextStage();
}
},
resetDifferentTwoCards: function() {
@@ -532,7 +535,9 @@ var Game = {
return this.playingStageNo * 10;
},
getBonusTime: function() {
return this.playingStageNo;
},
gameOver: function() {
+1 -2
View File
@@ -255,8 +255,7 @@ var Game = {
},
clearStage: function() {
var bonusTime = this.getBonusTime();
this.stageTimer.addBonusTime(bonusTime);
this.stageTimer.addBonusTime(this.getBonusTime());
this.playingStageNo++;