Build 29080170

This commit is contained in:
Renan LE CARO 2025-04-16 15:30:42 +02:00
parent 21fa5f105e
commit 530e94f704
9 changed files with 41 additions and 31 deletions

View file

@ -29,8 +29,8 @@ android {
applicationId = "me.lecaro.breakout" applicationId = "me.lecaro.breakout"
minSdk = 21 minSdk = 21
targetSdk = 34 targetSdk = 34
versionCode = 29079818 versionCode = 29080170
versionName = "29079818" versionName = "29080170"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { vectorDrawables {
useSupportLibrary = true useSupportLibrary = true

File diff suppressed because one or more lines are too long

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
// The version of the cache. // The version of the cache.
const VERSION = "29079818"; const VERSION = "29080170";
// The name of the cache // The name of the cache
const CACHE_NAME = `breakout-71-${VERSION}`; const CACHE_NAME = `breakout-71-${VERSION}`;

View file

@ -1 +1 @@
"29079818" "29080170"

View file

@ -18,7 +18,8 @@ import {
currentLevelInfo, currentLevelInfo,
distance2, distance2,
distanceBetween, distanceBetween,
getClosestBall, getCoinRenderColor, getClosestBall,
getCoinRenderColor,
getMajorityValue, getMajorityValue,
getPossibleUpgrades, getPossibleUpgrades,
getRowColIndex, getRowColIndex,

View file

@ -1,11 +1,20 @@
import {Ball, Coin, GameState, Level, PerkId, PerksMap, RunHistoryItem, UpgradeLike,} from "./types"; import {
import {icons, upgrades} from "./loadGameData"; Ball,
import {t} from "./i18n/i18n"; Coin,
import {clamp} from "./pure_functions"; GameState,
import {rawUpgrades} from "./upgrades"; Level,
import {hashCode} from "./getLevelBackground"; PerkId,
import {getTotalScore} from "./settings"; PerksMap,
import {isOptionOn} from "./options"; RunHistoryItem,
UpgradeLike,
} from "./types";
import { icons, upgrades } from "./loadGameData";
import { t } from "./i18n/i18n";
import { clamp } from "./pure_functions";
import { rawUpgrades } from "./upgrades";
import { hashCode } from "./getLevelBackground";
import { getTotalScore } from "./settings";
import { isOptionOn } from "./options";
export function describeLevel(level: Level) { export function describeLevel(level: Level) {
let bricks = 0, let bricks = 0,

View file

@ -33,7 +33,7 @@ export function monitorLevelsUnlocks(gameState: GameState) {
if (unlocked.has(name)) return; if (unlocked.has(name)) return;
// Score not reached yet // Score not reached yet
if (gameState.score < minScore) return; if (gameState.score < minScore) return;
if (! minScore) return; if (!minScore) return;
if (gameState.score < minScore) return; if (gameState.score < minScore) return;
// We are missing a required perk // We are missing a required perk

View file

@ -1,4 +1,4 @@
import {baseCombo, forEachLiveOne, liveCount} from "./gameStateMutators"; import { baseCombo, forEachLiveOne, liveCount } from "./gameStateMutators";
import { import {
ballTransparency, ballTransparency,
brickCenterX, brickCenterX,
@ -12,10 +12,10 @@ import {
telekinesisEffectRate, telekinesisEffectRate,
yoyoEffectRate, yoyoEffectRate,
} from "./game_utils"; } from "./game_utils";
import {colorString, GameState} from "./types"; import { colorString, GameState } from "./types";
import {t} from "./i18n/i18n"; import { t } from "./i18n/i18n";
import {gameState, lastMeasuredFPS, startWork} from "./game"; import { gameState, lastMeasuredFPS, startWork } from "./game";
import {isOptionOn} from "./options"; import { isOptionOn } from "./options";
import { import {
catchRateBest, catchRateBest,
catchRateGood, catchRateGood,
@ -26,7 +26,7 @@ import {
wallBouncedBest, wallBouncedBest,
wallBouncedGood, wallBouncedGood,
} from "./pure_functions"; } from "./pure_functions";
import {getCurrentMaxCoins} from "./settings"; import { getCurrentMaxCoins } from "./settings";
export const gameCanvas = document.getElementById("game") as HTMLCanvasElement; export const gameCanvas = document.getElementById("game") as HTMLCanvasElement;
export const ctx = gameCanvas.getContext("2d", { export const ctx = gameCanvas.getContext("2d", {