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;
|
alligators.length = 0;
|
||||||
for (let i = 0; i < numAlligators; i++) {
|
for (let i = 0; i < numAlligators; i++) {
|
||||||
alligators.push({
|
alligators.push({
|
||||||
x: Math.random() * canvas.width,
|
x: Math.random() * (canvas.width - 100) + 50,
|
||||||
y: 150 + Math.random() * 250,
|
y: canvas.height - 90 - Math.random() * 40,
|
||||||
width: 60,
|
width: 60,
|
||||||
height: 30,
|
height: 30,
|
||||||
speed: 1.5 + Math.random(),
|
speed: 1.5 + Math.random(),
|
||||||
|
|||||||
Reference in New Issue
Block a user