forked from rDrama/rDrama
1
0
Fork 0

fix stalker award overflow

master
Aevann 2023-10-11 18:43:18 +03:00
parent 7c1c3f11ae
commit 8c2acaa17e
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ function draw() {
let ghost = ghosts[0];
let prevghost = ghosts[0];
ghost.x = ghost.X += (mouse.x - ghost.X) * speed;
ghost.x = Math.min(ghost.x, screen_width * 0.7);
ghost.y = ghost.Y += (mouse.y - ghost.Y) * speed;
for (let i = count - 1; i > 0; --i) {
ghost = ghosts[i];