Updated translations to say "game" and not "run", this will make auto translation easier.

This commit is contained in:
Renan LE CARO 2025-03-31 13:33:27 +02:00
parent f9800c352c
commit d52472a34d
11 changed files with 673 additions and 660 deletions

View file

@ -699,6 +699,8 @@ export async function setLevel(gameState: GameState, l: number) {
// This caused problems with accented characters like the ô of côte d'ivoire for odd reasons
// background.src = 'data:image/svg+xml;base64,' + btoa(lvl.svg)
background.src = "data:image/svg+xml;UTF8," + lvl.svg;
document.body.style.setProperty("--level-background", lvl.color || "#000");
}
function setBrick(gameState: GameState, index: number, color: string) {
@ -949,6 +951,11 @@ export function gameStateTick(
(b) => b && b !== "black",
).length;
if (!remainingBricks && gameState.lastBrickBroken) {
// Avoid a combo reset just because we're waiting for coins
gameState.lastBrickBroken = 0;
}
if (
gameState.levelTime > gameState.lastTickDown + 1000 &&
gameState.perks.hot_start