score: reset graphics before drawing

master
Rob Pilling 2025-04-30 22:38:48 +01:00
parent dadd921dd0
commit 84784c74b2
1 changed files with 1 additions and 2 deletions

View File

@ -397,8 +397,7 @@ function handleInput(button) {
} }
function draw() { function draw() {
g.setFontAlign(0,0); g.reset().setFontAlign(0,0).clear();
g.clear();
for (let p = 0; p < 2; p++) { for (let p = 0; p < 2; p++) {
if (matchWon(p)) { if (matchWon(p)) {