Commit bb65863c authored by 18손재민's avatar 18손재민 Committed by 16이지혜

게임 오버 타이머 리셋 구현

parent 98b78aa5
......@@ -141,26 +141,20 @@ WordSpace.setGameOverTimer = function()
delay: this.defeatTime,
callback: function()
{
isTimerOn = true;
gameOver();
},
callbackScope: WordSpace.gameSceneForTest,
loop: false
}
this.isTimerOn = true;
this.gameOverTimer = WordSpace.gameSceneForTest.time.addEvent(timer);
//this.gameOverTimer = setTimeout(gameOver.bind(this), this.defeatTime);
//isTimerOn = true;
}
}
WordSpace.resetGameOverTimer = function()
{
if(this.brainCapacity >= this.totalWeight && this.isTimerOn)
{
console.log('d');
this.gameOverTimer.remove();
}
}
WordSpace.findWord = function(wordText)
......
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