This commit is contained in:
Renan LE CARO 2025-04-30 09:44:14 +02:00
parent 4c66cc820c
commit cee5c6bc60
28 changed files with 948 additions and 344 deletions

View file

@ -108,8 +108,12 @@ export function render(gameState: GameState) {
: "") +
`<span class="score" data-tooltip="${t("play.score_tooltip")}">$${gameState.score}</span>`;
scoreDisplay.classList[gameState.startParams.computer_controlled ? 'add':'remove']('computer_controlled');
scoreDisplay.classList[gameState.lastScoreIncrease > gameState.levelTime - 500 ? 'add':'remove']('active');
scoreDisplay.classList[
gameState.startParams.computer_controlled ? "add" : "remove"
]("computer_controlled");
scoreDisplay.classList[
gameState.lastScoreIncrease > gameState.levelTime - 500 ? "add" : "remove"
]("active");
// Clear
if (!isOptionOn("basic") && level.svg && level.color === "#000000") {