Breath interval limit

This commit is contained in:
Silas Bartha 2020-04-18 13:50:38 -04:00
parent 104f6c25da
commit ece0d97199

View File

@ -18,11 +18,11 @@ let currentBreathMode = breathMode.exhale;
function updateLife() {
if(keyDown[k.UP]) {
currentBreathMode = breathMode.inhale;
if(breath === 0) currentBreathMode = breathMode.inhale;
}
if(keyDown[k.DOWN]) {
currentBreathMode = breathMode.exhale;
if(breath === constants.lifeFuncs.breath.fullBreath) currentBreathMode = breathMode.exhale;
}
breathe();