mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-18 12:15:04 -04:00
Build 29041811
This commit is contained in:
parent
0c7d729ece
commit
edfc8b4f08
9 changed files with 19 additions and 11 deletions
|
@ -497,8 +497,11 @@ export function addToScore(gameState: GameState, coin: Coin) {
|
|||
}
|
||||
|
||||
export async function setLevel(gameState: GameState, l: number) {
|
||||
// Here to alleviade double upgrades issues
|
||||
|
||||
// Here to alleviate double upgrades issues
|
||||
if (gameState.upgradesOfferedFor >= l) {
|
||||
return console.warn("Extra upgrade request ignored ");
|
||||
}
|
||||
gameState.upgradesOfferedFor = l;
|
||||
pause(false);
|
||||
stopRecording();
|
||||
if (l > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue