mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 13:36:15 -04:00
wip
This commit is contained in:
parent
530e94f704
commit
d43dd90a86
23 changed files with 268 additions and 152 deletions
|
@ -65,6 +65,7 @@ export function newGameState(params: RunParams): GameState {
|
|||
const runLevels = getRunLevels(params, randomGift);
|
||||
|
||||
const gameState: GameState = {
|
||||
startParams: params,
|
||||
runLevels,
|
||||
level: runLevels[0],
|
||||
currentLevel: 0,
|
||||
|
@ -141,9 +142,7 @@ export function newGameState(params: RunParams): GameState {
|
|||
creative:
|
||||
params?.computer_controlled ||
|
||||
sumOfValues(params.perks) > 1 ||
|
||||
(params.level && !params.level.name.startsWith("icon:")),
|
||||
computer_controlled: params?.computer_controlled || false,
|
||||
isEditorTrialRun: params?.isEditorTrialRun,
|
||||
(params.level && !params.level.name.startsWith("icon:"))
|
||||
};
|
||||
resetBalls(gameState);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue