From 3ea892b42236d744aaad6c99ca2275000e3ea620 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Fri, 29 Nov 2013 16:14:22 -0800 Subject: [PATCH] enable --- js/ui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/ui.js b/js/ui.js index 36d1f2e..1ce184f 100644 --- a/js/ui.js +++ b/js/ui.js @@ -295,7 +295,7 @@ function OvenUI( stage, gameState ){ this.secondTick = function(diff){ - //ovenModel.secondTick(); + ovenModel.secondTick(); gameState.currentTime += diff; } @@ -405,20 +405,20 @@ function WindowUI( stage, gameState ){ animations: treeAnimations }; var spriteSheet = new createjs.SpriteSheet(data); - //var animation = new createjs.Sprite(spriteSheet, "treeAnimations"); - //animation.x = 415; - //animation.y = 30; + var animation = new createjs.Sprite(spriteSheet, "treeAnimations"); + animation.x = 415; + animation.y = 30; // Fast forward, move sky gameState.pubsub.subscribe( "SkipTime", function(){ dayNight.x -= dayNight.x < -15583 ? 0 : (11.38 * 20); }); - //stage.addChild( dayNight ); + stage.addChild( dayNight ); stage.addChild( ground ); stage.addChild( houses ); stage.addChild( streetLight ); - //stage.addChild( animation ); + stage.addChild( animation ); return { tick: function(){