|
|
@ -310,7 +310,7 @@ function OvenUI( stage, gameState ){ |
|
|
|
tick: function(){ |
|
|
|
tick: function(){ |
|
|
|
// IMPORTANT: SECOND TIMER
|
|
|
|
// IMPORTANT: SECOND TIMER
|
|
|
|
var diff = Date.now() - gameState.oldTime; |
|
|
|
var diff = Date.now() - gameState.oldTime; |
|
|
|
if( diff > 1000 ){ |
|
|
|
if( diff > 10000 ){ |
|
|
|
gameState.oldTime = Date.now(); |
|
|
|
gameState.oldTime = Date.now(); |
|
|
|
that.secondTick( diff ); |
|
|
|
that.secondTick( diff ); |
|
|
|
console.log(new Date( gameState.currentTime) ); |
|
|
|
console.log(new Date( gameState.currentTime) ); |
|
|
|