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 ){ @@ -21,7 +21,7 @@ function TurkeyLayer( name, percentRadius, turkeyModel, ovenModel ){
ovenModel.globalTime );
that.waterLost = that.waterLost + UtilityFunctions.waterLoss( that.finalTemperature );
that.cookCondition = UtilityFunctions.cookCondition(that.waterLost);
//console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition);
console.log( that.name + ": "+ that.waterLost + " " + that.cookCondition);
},
resetLayerTemps: function(){
that.initialTemp = that.finalTemperature;
@ -118,7 +118,7 @@ function OvenModel( turkeyWeight, gameState ) { @@ -118,7 +118,7 @@ function OvenModel( turkeyWeight, gameState ) {
};
},
changeTemp: function(setTemp){
//console.log("temp changed to " + setTemp);
console.log("temp changed to " + setTemp);
that.setTemp = setTemp;
},
secondTick: function(){
@ -134,9 +134,9 @@ function OvenModel( turkeyWeight, gameState ) { @@ -134,9 +134,9 @@ function OvenModel( turkeyWeight, gameState ) {
// Turn off oven light
gameState.pubsub.publish( "OvenLight", "Off" );
}
//console.log("Steady Temp " + that.steadyTemp)
//console.log("Steady Timer " + that.steadyTimer)
//console.log("Oven Temp " + that.tempInfini )
console.log("Steady Temp " + that.steadyTemp)
console.log("Steady Timer " + that.steadyTimer)
console.log("Oven Temp " + that.tempInfini )
turkey.updateLayerTemps();
}
}
@ -262,7 +262,7 @@ UtilityFunctions = { @@ -262,7 +262,7 @@ UtilityFunctions = {
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)
},

4
js/ui.js

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

Loading…
Cancel
Save