mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 21:16:14 -04:00
Overcomplicated looping mechanic
This commit is contained in:
parent
5012076039
commit
39b326a15b
18 changed files with 296 additions and 125 deletions
|
@ -51,6 +51,7 @@ export function newGameState(params: RunParams): GameState {
|
|||
ballStickToPuck: true,
|
||||
puckPosition: 400,
|
||||
lastPuckPosition: 400,
|
||||
desiredPuckPosition: 400,
|
||||
lastPuckMove: 0,
|
||||
pauseTimeout: null,
|
||||
canvasWidth: 0,
|
||||
|
@ -111,6 +112,8 @@ export function newGameState(params: RunParams): GameState {
|
|||
rerolls: 0,
|
||||
loop: 0,
|
||||
baseCombo: 1,
|
||||
puckFrozenUntil: 0,
|
||||
levelsPerLoop: params?.levelsPerLoop ?? 7,
|
||||
};
|
||||
resetBalls(gameState);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue