This commit is contained in:
Renan LE CARO 2025-03-26 08:35:49 +01:00
parent e3e61b12b8
commit 395968bc52
16 changed files with 1735 additions and 1847 deletions

View file

@ -28,7 +28,7 @@ export function newGameState(params: RunParams): GameState {
const perks = { ...makeEmptyPerksMap(upgrades), ...(params?.perks || {}) };
const gameState: GameState= {
const gameState: GameState = {
runLevels,
currentLevel: 0,
upgradesOfferedFor: -1,
@ -101,10 +101,10 @@ export function newGameState(params: RunParams): GameState {
autoCleanUses: 0,
...defaultSounds(),
isAdventureMode:!!params?.adventure,
adventurePath:'',
seed:'Seed'+Math.random(),
rerolls:0
isAdventureMode: !!params?.adventure,
adventurePath: "",
seed: "Seed" + Math.random(),
rerolls: 0,
};
resetBalls(gameState);