Commit 8e33a1b0 authored by Pablo R. Mier's avatar Pablo R. Mier

fix first evolution time after ready msg

parent 048fae6e
......@@ -60,7 +60,6 @@ invadersApp.Game.prototype = {
this.currentGenerationTime = Phaser.Timer.SECOND * 5;
this.currentGeneration = 0;
this.lastGenerationTime = this.game.time.now;
// Load game config
this.settings = this.game.cache.getJSON('settings');
......@@ -103,6 +102,7 @@ invadersApp.Game.prototype = {
if (readyText.img.visible){
that.game.paused = false;
readyText.img.kill();
that.lastGenerationTime = that.game.time.now;
that.gameState = invadersApp.GameState.RUNNING;
}
};
......
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