|
|
@ -602,8 +602,10 @@ function OvenUI( stage, gameState ){ |
|
|
|
|
|
|
|
|
|
|
|
gameState.ovenModel.secondTick(); |
|
|
|
gameState.ovenModel.secondTick(); |
|
|
|
gameState.currentTime += diff; |
|
|
|
gameState.currentTime += diff; |
|
|
|
|
|
|
|
if( gameState.turkeyBought ){ |
|
|
|
gameState.turkeyCookCounter++; |
|
|
|
gameState.turkeyCookCounter++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gameState.pubsub.subscribe( "SkipTime", function(){ |
|
|
|
gameState.pubsub.subscribe( "SkipTime", function(){ |
|
|
|
if(DEBUG) console.log("Skipping time"); |
|
|
|
if(DEBUG) console.log("Skipping time"); |
|
|
@ -624,7 +626,6 @@ function OvenUI( stage, gameState ){ |
|
|
|
that.secondTick( diff ); |
|
|
|
that.secondTick( diff ); |
|
|
|
|
|
|
|
|
|
|
|
if( gameState.turkeyBought ){ |
|
|
|
if( gameState.turkeyBought ){ |
|
|
|
gameState.turkeyCookCounter++; |
|
|
|
|
|
|
|
// what's the state of the turkey
|
|
|
|
// what's the state of the turkey
|
|
|
|
turkeyState = gameState.ovenModel.getTurkeyState(); |
|
|
|
turkeyState = gameState.ovenModel.getTurkeyState(); |
|
|
|
gameState.turkeyStates[0].alpha = 1; |
|
|
|
gameState.turkeyStates[0].alpha = 1; |
|
|
|