Add: add bonus time to card matching
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -255,8 +255,7 @@ var Game = {
|
||||
},
|
||||
|
||||
clearStage: function() {
|
||||
var bonusTime = this.getBonusTime();
|
||||
this.stageTimer.addBonusTime(bonusTime);
|
||||
this.stageTimer.addBonusTime(this.getBonusTime());
|
||||
|
||||
this.playingStageNo++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user