Skip to content

Commit

Permalink
more score info
Browse files Browse the repository at this point in the history
  • Loading branch information
joaorceschini committed May 13, 2024
1 parent 3f5f81b commit a094aed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ <h1 id="title">apm test</h1>
}
}

var crescentDecrescentInfo = "decrescent";
var crescentChange;

function crescentDecrescent() {
Expand All @@ -94,10 +95,12 @@ <h1 id="title">apm test</h1>
numbers.crescent = true;
numbers.pos = 1;
document.getElementById("crescentDecrescent").innerText = "decrescent";
crescentDecrescentInfo = "crescent";
} else {
numbers.crescent = false;
numbers.pos = numbers.maxCircles;
document.getElementById("crescentDecrescent").innerText = "crescent";
crescentDecrescentInfo = "decrescent";
}

initialize();
Expand All @@ -124,6 +127,17 @@ <h1 id="title">apm test</h1>
canvas.width / 2,
canvas.height / 2
);
ctx.font = "14px Arial";
if (!darkMode) {
ctx.fillStyle = "#333";
} else {
ctx.fillStyle = "#aaa";
}
ctx.fillText(
crescentDecrescentInfo + " " + selectedCircles + " targets",
canvas.width / 2,
canvas.height / 2 + 25
);
} else {
crescentChange = false;
}
Expand Down

0 comments on commit a094aed

Please sign in to comment.