Browse Source

Moar debug

Load_Fix
Robert Chen 11 years ago
parent
commit
49a8f97db7
  1. 12
      js/model.js
  2. 4
      js/ui.js

12
js/model.js

@ -21,7 +21,7 @@ function TurkeyLayer( name, percentRadius, turkeyModel, ovenModel ){
ovenModel.globalTime ); ovenModel.globalTime );
that.waterLost = that.waterLost + UtilityFunctions.waterLoss( that.finalTemperature ); that.waterLost = that.waterLost + UtilityFunctions.waterLoss( that.finalTemperature );
that.cookCondition = UtilityFunctions.cookCondition(that.waterLost); that.cookCondition = UtilityFunctions.cookCondition(that.waterLost);
//console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition); console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition);
}, },
resetLayerTemps: function(){ resetLayerTemps: function(){
that.initialTemp = that.finalTemperature; that.initialTemp = that.finalTemperature;
@ -118,7 +118,7 @@ function OvenModel( turkeyWeight, gameState ) {
}; };
}, },
changeTemp: function(setTemp){ changeTemp: function(setTemp){
//console.log("temp changed to " + setTemp); console.log("temp changed to " + setTemp);
that.setTemp = setTemp; that.setTemp = setTemp;
}, },
secondTick: function(){ secondTick: function(){
@ -134,9 +134,9 @@ function OvenModel( turkeyWeight, gameState ) {
// Turn off oven light // Turn off oven light
gameState.pubsub.publish( "OvenLight", "Off" ); gameState.pubsub.publish( "OvenLight", "Off" );
} }
//console.log("Steady Temp " + that.steadyTemp) console.log("Steady Temp " + that.steadyTemp)
//console.log("Steady Timer " + that.steadyTimer) console.log("Steady Timer " + that.steadyTimer)
//console.log("Oven Temp " + that.tempInfini ) console.log("Oven Temp " + that.tempInfini )
turkey.updateLayerTemps(); turkey.updateLayerTemps();
} }
} }
@ -262,7 +262,7 @@ UtilityFunctions = {
tempAtTimeAndRadius=(sum*(tempInitial-tempInfini))+tempInfini tempAtTimeAndRadius=(sum*(tempInitial-tempInfini))+tempInfini
//console.log("The Temperature at radius " + rPosition + " m and time " + t/60/60 + " hours is " + tempAtTimeAndRadius + " C or " + this.C2F(tempAtTimeAndRadius) + " F"); console.log("The Temperature at radius " + rPosition + " m and time " + t/60/60 + " hours is " + tempAtTimeAndRadius + " C or " + this.C2F(tempAtTimeAndRadius) + " F");
return(tempAtTimeAndRadius) return(tempAtTimeAndRadius)
}, },

4
js/ui.js

@ -361,10 +361,10 @@ function OvenUI( stage, gameState ){
panFront.alpha = 1; panFront.alpha = 1;
stage.addChild(turkeyStates[0]); stage.addChild(turkeyStates[0]);
/*for(i in turkeyStates){ for(i in turkeyStates){
stage.addChild(turkeyStates[i]); stage.addChild(turkeyStates[i]);
}*/ }
stage.addChild(panFront); stage.addChild(panFront);
} }
// Pan front goes here // Pan front goes here

Loading…
Cancel
Save