From dd08b40094a3c39ffc95844891d4aad600072bcc Mon Sep 17 00:00:00 2001 From: claw Date: Sat, 18 Apr 2026 20:35:07 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Aligatoren=20nur=20auf=20Stra=C3=9Fe,=20?= =?UTF-8?q?Logs=20korrekt=20initialisieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index d7be408..2411ce5 100644 --- a/index.html +++ b/index.html @@ -165,12 +165,12 @@ }); } - // Aligatoren (Gegner) + // Aligatoren (Gegner) — nur auf der Straße alligators.length = 0; for (let i = 0; i < numAlligators; i++) { alligators.push({ - x: Math.random() * canvas.width, - y: 150 + Math.random() * 250, + x: Math.random() * (canvas.width - 100) + 50, + y: canvas.height - 90 - Math.random() * 40, width: 60, height: 30, speed: 1.5 + Math.random(),