mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
Updated translations to say "game" and not "run", this will make auto translation easier.
This commit is contained in:
parent
f9800c352c
commit
d52472a34d
11 changed files with 673 additions and 660 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue