This commit is contained in:
Renan LE CARO 2025-04-06 11:36:32 +02:00
parent ccd7f00a6a
commit ac2100860f
4 changed files with 6 additions and 4 deletions

3
dist/index.html vendored

File diff suppressed because one or more lines are too long

View file

@ -1263,7 +1263,7 @@
{ {
"name": "icon:settings", "name": "icon:settings",
"size": 9, "size": 9,
"bricks": "___g_g____g_ggg_g___ggggg__gggbbbggg_ggb_bgg_gggbbbggg__ggggg___g_ggg_g____g_g___", "bricks": "___g_g____g_ggg_g___ggbgg__gggbbbggg_gbb_bbg_gggbbbggg__ggbgg___g_ggg_g____g_g___",
"svg": null, "svg": null,
"color": "" "color": ""
}, },

View file

@ -1,4 +1,4 @@
import { allLevels, appVersion, upgrades } from "./loadGameData"; import {allLevels, appVersion, icons, upgrades} from "./loadGameData";
import { t } from "./i18n/i18n"; import { t } from "./i18n/i18n";
import { GameState, RunHistoryItem } from "./types"; import { GameState, RunHistoryItem } from "./types";
import { gameState, pause, restart } from "./game"; import { gameState, pause, restart } from "./game";
@ -125,6 +125,7 @@ export function gameOver(title: string, intro: string) {
`, `,
unlocksInfo, unlocksInfo,
{ {
icon:icons["icon:new_run"],
value: null, value: null,
text: t("gameOver.restart"), text: t("gameOver.restart"),
help: "", help: "",

View file

@ -21,7 +21,7 @@ function App() {
useEffect(()=>{ useEffect(()=>{
fetch('http://localhost:4400/src/data/levels.json') fetch('http://localhost:4400/src/data/levels.json')
.then(r=>r.json()) .then(r=>r.json())
.then(list=>{ .then(list=>{
setLevels(list as RawLevel[]) setLevels(list as RawLevel[])
allLevels=list allLevels=list
}) })