Fix: Aligatoren nur auf Straße, Logs korrekt initialisieren
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user