mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 13:36:15 -04:00
Build 29074419
This commit is contained in:
parent
b15eb873b1
commit
48ac639901
14 changed files with 28 additions and 57 deletions
|
@ -37,9 +37,11 @@ export function getRunLevels(
|
|||
.filter((l) => l.name !== params?.levelToAvoid)
|
||||
.sort(() => Math.random() - 0.5);
|
||||
|
||||
return firstLevel.concat(
|
||||
restInRandomOrder.slice(0, 7 + 3).sort((a, b) => a.sortKey - b.sortKey),
|
||||
);
|
||||
return firstLevel
|
||||
.concat(
|
||||
restInRandomOrder.slice(0, 7 + 3).sort((a, b) => a.sortKey - b.sortKey),
|
||||
)
|
||||
.concat(restInRandomOrder.slice(7 + 3));
|
||||
}
|
||||
|
||||
export function newGameState(params: RunParams): GameState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue