moboid / SUGAR

Small shiny game of the Hohe Schule
3 stars 1 forks source link

Bug: Fan keeps blowing #4

Open moboid opened 5 years ago

moboid commented 5 years ago

Repro: unknown A bug was encountered in which one (?) of the fans kept blowing at the end of the game and did not stop until the O key was triggered. May have been caused by button-mashing during the last of the horses READY moments. Not sure.

zephlord commented 5 years ago

created an off function for smell manager; SUGAR.pde lines 223-229

 void smellOff()
 {
     SMELL_PORT.write(SMELL_OFF_VAL);
     println("smell on for " + smelledForTime +"sec, turning smell off");
     smellActive = false;
 }

Then in the enter() functions of LoseScreen.pde and WinScreen.pde, add SMELL_MANAGER.smellOff()