pull/148/head
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 =
avalibleIdleAnimations[
Math.floor(Math.random() * avalibleIdleAnimations.length)
Math.floor(Math.random() * avalibleIdleAnimations.length)
];
}
switch (idleAnimation) {
case "sleeping":
if (idleAnimationFrame < 8) {
setSprite("tired", 0);
setSprite("tired", 0);
break;
}
setSprite("sleeping", Math.floor(idleAnimationFrame / 4));
if (idleAnimationFrame > 192) {
resetIdleAnimation();
resetIdleAnimation();
}
break;
case "scratchWallN":