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

View file

@ -1263,7 +1263,7 @@
{
"name": "icon:settings",
"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,
"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 { GameState, RunHistoryItem } from "./types";
import { gameState, pause, restart } from "./game";
@ -125,6 +125,7 @@ export function gameOver(title: string, intro: string) {
`,
unlocksInfo,
{
icon:icons["icon:new_run"],
value: null,
text: t("gameOver.restart"),
help: "",

View file

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