Input Tweaks

This commit is contained in:
Silas Bartha 2020-04-18 16:29:09 -04:00
parent 0c42644466
commit 97d712469c
2 changed files with 3 additions and 6 deletions

BIN
docs/.jekyll-metadata Normal file

Binary file not shown.

View File

@ -17,12 +17,9 @@ let currentBreathMode = breathMode.exhale;
function updateLife() {
if(keyDown[k.w]) {
if(keyDown[k.z]) {
if(breath === 0) currentBreathMode = breathMode.inhale;
}
if(keyDown[k.s]) {
if(breath === constants.lifeFuncs.breath.fullBreath) currentBreathMode = breathMode.exhale;
else if(breath === constants.lifeFuncs.breath.fullBreath) currentBreathMode = breathMode.exhale;
}
breathe();
@ -31,7 +28,7 @@ function updateLife() {
heartbeat();
}
pressure-=0.25;
pressure-=0.1;
if(pressure<=0){
pressure = 0;
}