Fix: Aligatoren nur auf Straße, Logs korrekt initialisieren

This commit is contained in:
2026-04-18 20:35:07 +02:00
parent 7603e8b8a8
commit dd08b40094

View File

@@ -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(),