Build 29068637

This commit is contained in:
Renan LE CARO 2025-04-08 15:17:14 +02:00
parent 4651bb396c
commit b530bf38d5
8 changed files with 30 additions and 25 deletions

View file

@ -16,6 +16,6 @@
],
"start_url": "/index.html?isPWA=true",
"display": "fullscreen",
"theme_color": "#5DA3EA",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View file

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

View file

@ -1 +1 @@
"29068622"
"29068637"

View file

@ -690,8 +690,10 @@ 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");
document.body.style.setProperty("--level-background", lvl.color || "#000000");
document
.getElementById("themeColor")
?.setAttribute("content", lvl.color || "#000000");
}
function setBrick(gameState: GameState, index: number, color: string) {

View file

@ -13,6 +13,7 @@
content="A breakout game with roguelite mechanics. Break bricks, catch coins, pick upgrades, repeat. Play for free on mobile and desktop."
/>
<link rel="manifest" href="./PWA/manifest.json" />
<meta name="theme-color" content="#000000" id="themeColor" />
<style>
@import "game.less";