Build 29068563

This commit is contained in:
Renan LE CARO 2025-04-08 14:03:38 +02:00
parent 6ef13f2d19
commit df8bfbb350
25 changed files with 384 additions and 336 deletions

View file

@ -1,7 +1,5 @@
// Settings
import { GameState } from "./types";
let cachedSettings: { [key: string]: unknown } = {};
export function getSettingValue<T>(key: string, defaultValue: T) {
@ -29,11 +27,6 @@ export function getTotalScore() {
return getSettingValue("breakout_71_total_score", 0);
}
export function addToTotalScore(gameState: GameState, points: number) {
if (!gameState.creative)
setSettingValue("breakout_71_total_score", getTotalScore() + points);
}
export function getCurrentMaxCoins() {
return Math.pow(2, getSettingValue("max_coins", 1)) * 200;
}