forked from rDrama/rDrama
1
0
Fork 0

fix stalker overflow

master
Aevann 2023-10-11 19:23:36 +03:00
parent 64d291e423
commit d664e14076
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function draw() {
let prevghost = ghosts[0];
ghost.x = ghost.X += (mouse.x - ghost.X) * speed;
if (screen_width < 768) {
ghost.x = Math.min(ghost.x, screen_width * 0.6);
ghost.x = Math.min(ghost.x, screen_width * 0.55);
}
ghost.y = ghost.Y += (mouse.y - ghost.Y) * speed;
for (let i = count - 1; i > 0; --i) {