forked from rDrama/rDrama
1
0
Fork 0

dont limit on desktop

master
Aevann 2023-10-11 18:46:21 +03:00
parent 45e3315481
commit e7aae701ba
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ 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);
if (screen_width < 768) {
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];