[pongwars] make sure dead balls are drawn over

This commit is contained in:
dogeystamp 2024-03-01 16:18:49 -05:00
parent 53c8aa5012
commit a1ca78011e
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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;