forked from rDrama/rDrama
1
0
Fork 0
master
Aevann 2023-05-13 06:08:37 +03:00
parent 8b852f1bc7
commit 74ce1f9034
1 changed files with 3 additions and 3 deletions

View File

@ -112,19 +112,19 @@ function idle() {
} }
idleAnimation = idleAnimation =
avalibleIdleAnimations[ avalibleIdleAnimations[
Math.floor(Math.random() * avalibleIdleAnimations.length) Math.floor(Math.random() * avalibleIdleAnimations.length)
]; ];
} }
switch (idleAnimation) { switch (idleAnimation) {
case "sleeping": case "sleeping":
if (idleAnimationFrame < 8) { if (idleAnimationFrame < 8) {
setSprite("tired", 0); setSprite("tired", 0);
break; break;
} }
setSprite("sleeping", Math.floor(idleAnimationFrame / 4)); setSprite("sleeping", Math.floor(idleAnimationFrame / 4));
if (idleAnimationFrame > 192) { if (idleAnimationFrame > 192) {
resetIdleAnimation(); resetIdleAnimation();
} }
break; break;
case "scratchWallN": case "scratchWallN":