mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 06:26:16 -04:00
wip
This commit is contained in:
parent
f1cd138071
commit
44b9a39927
3 changed files with 7 additions and 2 deletions
|
@ -649,7 +649,11 @@ export function addToScore(gameState: GameState, coin: Coin) {
|
|||
addToTotalScore(gameState, coin.points);
|
||||
if (gameState.score > gameState.highScore && !gameState.creative) {
|
||||
gameState.highScore = gameState.score;
|
||||
try{
|
||||
localStorage.setItem("breakout-3-hs-short", gameState.score.toString());
|
||||
}catch (e){
|
||||
|
||||
}
|
||||
}
|
||||
if (!isOptionOn("basic")) {
|
||||
makeParticle(
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { icons, transformRawLevel } from "./loadGameData";
|
||||
import { t } from "./i18n/i18n";
|
||||
import {
|
||||
commitSettingsChangesToLocalStorage,
|
||||
getSettingValue,
|
||||
getTotalScore,
|
||||
setSettingValue,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue