forked from rDrama/rDrama
1
0
Fork 0

fix overflow again

master
Aevann 2023-10-11 18:46:39 +03:00
parent e7aae701ba
commit de50a9077b
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.7);
ghost.x = Math.min(ghost.x, screen_width * 0.6);
}
ghost.y = ghost.Y += (mouse.y - ghost.Y) * speed;
for (let i = count - 1; i > 0; --i) {