Update 'files/assets/js/cursormarsey.js'

pull/143/head
Lascaille 2023-05-04 19:17:33 +00:00
parent 4b9b449f3a
commit 72b0c3788b
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ function frame() {
const diffY = cursormarseyPosY - mousePosY; const diffY = cursormarseyPosY - mousePosY;
const distance = Math.sqrt(diffX ** 2 + diffY ** 2); const distance = Math.sqrt(diffX ** 2 + diffY ** 2);
if (distance < cursormarseySpeed || distance < 48) { if (distance < cursormarseySpeed || distance < 160) {
idle(); idle();
return; return;
} }
@ -161,7 +161,7 @@ function frame() {
if (idleTime > 1) { if (idleTime > 1) {
setSprite("alert", 0); setSprite("alert", 0);
// count down after being alerted before moving // count down after being alerted before moving
idleTime = Math.min(idleTime, 7); idleTime = Math.min(idleTime, 32);
idleTime -= 1; idleTime -= 1;
return; return;
} }