Build 29058469

This commit is contained in:
Renan LE CARO 2025-04-01 13:49:25 +02:00
parent b2e6e3c9e4
commit 19729d4599
7 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
// The version of the cache.
const VERSION = "29058459";
const VERSION = "29058469";
// The name of the cache
const CACHE_NAME = `breakout-71-${VERSION}`;

View file

@ -1 +1 @@
"29058459"
"29058469"

View file

@ -108,7 +108,7 @@ export function gameOver(title: string, intro: string) {
(u) => u.threshold > startTs && u.threshold < endTs,
);
if (unlockedItems.length) {
unlocksInfo += `<p>${t('gameOver.unlocked_count', { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
unlocksInfo += `<p>${t("gameOver.unlocked_count", { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
}
// Avoid the sad sound right as we restart a new games

View file

@ -555,7 +555,7 @@ export function addToScore(gameState: GameState, coin: Coin) {
gameState.score += coin.points;
gameState.lastScoreIncrease = gameState.levelTime;
addToTotalScore(gameState, coin.points);
if (gameState.score > gameState.highScore ) {
if (gameState.score > gameState.highScore) {
gameState.highScore = gameState.score;
localStorage.setItem(
"breakout-3-hs-" + gameState.mode,