fix cleanup
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m26s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m26s
This commit is contained in:
@@ -96,11 +96,13 @@ function drawGame() {
|
||||
|
||||
// --- DEBUG RAHMEN (Server Hitboxen) ---
|
||||
// Grün im Spiel, Rot bei Tod
|
||||
ctx.strokeStyle = isGameOver ? "red" : "lime";
|
||||
ctx.lineWidth = 2;
|
||||
serverObstacles.forEach(srvObs => {
|
||||
ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h);
|
||||
});
|
||||
if (DEBUG_SYNC == true) {
|
||||
ctx.strokeStyle = isGameOver ? "red" : "lime";
|
||||
ctx.lineWidth = 2;
|
||||
serverObstacles.forEach(srvObs => {
|
||||
ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// --- SPIELER ---
|
||||
|
||||
Reference in New Issue
Block a user