From a1ca78011ec9d1e5f69dd1332bdf35a688cf1120 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 1 Mar 2024 16:18:49 -0500 Subject: [PATCH] [pongwars] make sure dead balls are drawn over --- docs/pongwars/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/pongwars/index.html b/docs/pongwars/index.html index 49c770e..1c1c3c2 100644 --- a/docs/pongwars/index.html +++ b/docs/pongwars/index.html @@ -509,6 +509,10 @@ if (state[i].score <= 4) { state[i].elim = true } + if (state[i].score > 0 && state[i].elim) { + // draw over dead balls + coverBall(state[i].x, state[i].y) + } } nTeams = state.map(t => !t.elim).filter(Boolean).length;