From ae2ba7c2d4a3a52604caf9c4fd741c3339e46d27 Mon Sep 17 00:00:00 2001 From: WhyKorp <117651228+whykorp@users.noreply.github.com> Date: Sun, 26 May 2024 23:08:59 +0200 Subject: [PATCH] fix bugs --- jpc/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jpc/index.html b/jpc/index.html index b0f70e9..8c3a21a 100644 --- a/jpc/index.html +++ b/jpc/index.html @@ -68,8 +68,8 @@ 'sketch_231005a/bg/jpc16.png', ]; let imgIndex = 0; - let x = Math.random() * window.innerWidth; - let y = Math.random() * window.innerHeight; + let x = (window.innerWidth - 100) /2; + let y = (window.innerHeight - 100) /2; let xSpeed = 2; let ySpeed = 2;