Private
Public Access
1
0

bug fixes
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m37s

This commit is contained in:
Sebastian Unterschütz
2025-11-25 23:36:09 +01:00
parent 3bf339f0ec
commit fc8b22dd7c
8 changed files with 133 additions and 417 deletions

View File

@@ -93,7 +93,7 @@ function drawGame() {
if(obs.speech) drawSpeechBubble(obs.x, obs.y, obs.speech);
});
/*
// --- DEBUG RAHMEN (Server Hitboxen) ---
// Grün im Spiel, Rot bei Tod
ctx.strokeStyle = isGameOver ? "red" : "lime";
@@ -101,7 +101,6 @@ function drawGame() {
serverObstacles.forEach(srvObs => {
ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h);
});
*/
// --- SPIELER ---
@@ -130,7 +129,7 @@ function drawGame() {
// Drift Info (nur wenn Objekte da sind)
if (obstacles.length > 0 && serverObstacles.length > 0) {
const drift = Math.abs(obstacles[0].x - serverObstacles[0].x).toFixed(1);
// statusText += ` | Drift: ${drift}px`; // Einkommentieren für Debugging
statusText += ` | Drift: ${drift}px`; // Einkommentieren für Debugging
}
if(statusText !== "") {