Private
Public Access
1
0

Merge pull request 'fix cleanup' (#13) from fix-debug into main
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m21s

Reviewed-on: #13
This commit is contained in:
2025-11-26 18:49:31 +00:00

View File

@@ -96,11 +96,13 @@ function drawGame() {
// --- DEBUG RAHMEN (Server Hitboxen) --- // --- DEBUG RAHMEN (Server Hitboxen) ---
// Grün im Spiel, Rot bei Tod // Grün im Spiel, Rot bei Tod
ctx.strokeStyle = isGameOver ? "red" : "lime"; if (DEBUG_SYNC == true) {
ctx.lineWidth = 2; ctx.strokeStyle = isGameOver ? "red" : "lime";
serverObstacles.forEach(srvObs => { ctx.lineWidth = 2;
ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h); serverObstacles.forEach(srvObs => {
}); ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h);
});
}
// --- SPIELER --- // --- SPIELER ---