Build 29058637

This commit is contained in:
Renan LE CARO 2025-04-01 16:37:34 +02:00
parent 19729d4599
commit b49abf9904
10 changed files with 40 additions and 20 deletions

View file

@ -23,7 +23,12 @@ Break colourful bricks, catch bouncing coins and select powerful upgrades !
- Top down /reach: punishing now, maybe only reset if you hit the lowest populate row of the level, if it's not a full width row - Top down /reach: punishing now, maybe only reset if you hit the lowest populate row of the level, if it's not a full width row
- main menu : show high score - main menu : show high score
## Release candidate ## next release
- keep high score of past runs
## 29058469
- New game mode : loop / long game - New game mode : loop / long game
- the goal is to build many different build centered on one perk - the goal is to build many different build centered on one perk
@ -34,7 +39,7 @@ Break colourful bricks, catch bouncing coins and select powerful upgrades !
- unlocked after unlocking all perks - unlocked after unlocking all perks
- New game mode : lab / creative - New game mode : lab / creative
- the goal is to come up with 3 completely different but powerful play styles - the goal is to come up with 3 completely different but powerful play styles
- you freely create 3 builds from all the perks level avaliable - you freely create 3 builds from all the perks level available
- you play them against the levels of your choice - you play them against the levels of your choice
- try to make as much score as possible in total - try to make as much score as possible in total
- unlocked after unlocking all perks - unlocked after unlocking all perks
@ -43,7 +48,7 @@ Break colourful bricks, catch bouncing coins and select powerful upgrades !
- Sunglasses - Sunglasses
- Balloon - Balloon
- Adjusted levels : - Adjusted levels :
- orca is no longer made of bombs, but grey block - orca is no longer made of bombs, but gray block
- New perks - New perks
- addiction : reward faster gameplay - addiction : reward faster gameplay
- Adjusted perks - Adjusted perks
@ -68,16 +73,16 @@ Break colourful bricks, catch bouncing coins and select powerful upgrades !
- trampoline: nerfed a little bit, now all sides and top hit reduce combo - trampoline: nerfed a little bit, now all sides and top hit reduce combo
- Quality of life - Quality of life
- Udated discord invite link that had expired - Updated discord invite link that had expired
- Full screen is now a persistent option, when it's on the game will switch to full screen before starting - Full screen is now a persistent option, when it's on the game will switch to full screen before starting
- Added an option to always get colored coins - Added an option to always get colored coins
- Made the "combo lost" text last 500ms instead of the pointless 150ms - Made the "combo lost" text last 500ms instead of the pointless 150ms
- Added in-game help and credits, witch can be translated - Added in-game help and credits, which can be translated
- Balancing : you earn an extra perk when playing well, and a reroll when playing perfectly - Balancing : you earn an extra perk when playing well, and a reroll when playing perfectly
- added a prominent "donate" link after 5h of playing, and setting to hide it permanently - added a prominent "donate" link after 5h of playing, and setting to hide it permanently
- disabled auto-release to fdroid, i'll use the web version as the testing ground first - disabled auto-release to F-Droid, i'll use the web version as the testing ground first
- added a white border around all coins, to make dark ones visible on dark bg - added a white border around all coins, to make dark ones visible on dark bg
- [jaceys] Counters for coins lost, misses, and boundary bounces, as well as a timer. - [jaceys] counters for coins lost, misses, and boundary bounces, as well as a timer.
- Unlocked list : split perk and levels, added tooltips - Unlocked list : split perk and levels, added tooltips
## 29049575 ## 29049575

View file

@ -11,8 +11,8 @@ android {
applicationId = "me.lecaro.breakout" applicationId = "me.lecaro.breakout"
minSdk = 21 minSdk = 21
targetSdk = 34 targetSdk = 34
versionCode = 29058469 versionCode = 29058637
versionName = "29058469" versionName = "29058637"
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

View file

@ -126,10 +126,8 @@ class MainActivity : android.app.Activity() {
webView.settings.domStorageEnabled = true webView.settings.domStorageEnabled = true
webView.settings.setSupportZoom(false) webView.settings.setSupportZoom(false)
val installerPackageName = packageManager.getInstallerPackageName(packageName)
webView.loadUrl("file:///android_asset/index.html?isInWebView=true")
webView.loadUrl("file:///android_asset/index.html?isInWebView=true&source=$installerPackageName")
val activity = this; val activity = this;
webView.webChromeClient = object : WebChromeClient() { webView.webChromeClient = object : WebChromeClient() {

11
dist/index.html vendored
View file

@ -1461,7 +1461,7 @@ const upgrades = (0, _upgrades.rawUpgrades).map((u)=>({
})); }));
},{"./data/palette.json":"ktRBU","./data/levels.json":"8JSUc","./data/version.json":"iyP6E","./upgrades":"1u3Dx","./getLevelBackground":"7OIPf","./levelIcon":"6rQoT","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"iyP6E":[function(require,module,exports,__globalThis) { },{"./data/palette.json":"ktRBU","./data/levels.json":"8JSUc","./data/version.json":"iyP6E","./upgrades":"1u3Dx","./getLevelBackground":"7OIPf","./levelIcon":"6rQoT","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"iyP6E":[function(require,module,exports,__globalThis) {
module.exports = JSON.parse("\"29058469\""); module.exports = JSON.parse("\"29058637\"");
},{}],"1u3Dx":[function(require,module,exports,__globalThis) { },{}],"1u3Dx":[function(require,module,exports,__globalThis) {
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
@ -2758,6 +2758,13 @@ function highScoreForMode(mode) {
} catch (e) {} } catch (e) {}
return ""; return "";
} }
try {
const old = localStorage.getItem("breakout-3-hs");
if (old) {
localStorage.setItem("breakout-3-hs-short", old);
localStorage.removeItem("breakout-3-hs");
}
} catch (e) {}
},{"./loadGameData":"l1B4x","./i18n/i18n":"eNPRm","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"2n0gK":[function(require,module,exports,__globalThis) { },{"./loadGameData":"l1B4x","./i18n/i18n":"eNPRm","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"2n0gK":[function(require,module,exports,__globalThis) {
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
@ -4687,7 +4694,7 @@ function newGameState(params) {
lastScoreIncrease: -1000, lastScoreIncrease: -1000,
lastExplosion: -1000, lastExplosion: -1000,
lastBrickBroken: 0, lastBrickBroken: 0,
highScore: parseFloat(localStorage.getItem("breakout-3-hs-" + params?.mode) || "0"), highScore: parseFloat(localStorage.getItem("breakout-3-hsbreakout-3-hs-" + params?.mode) || "0"),
balls: [], balls: [],
ballsColor: "white", ballsColor: "white",
bricks: [], bricks: [],

View file

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

View file

@ -3,7 +3,7 @@ import { allLevels, icons, upgrades } from "./loadGameData";
import { t } from "./i18n/i18n"; import { t } from "./i18n/i18n";
import { getSettingValue, getTotalScore, setSettingValue } from "./settings"; import { getSettingValue, getTotalScore, setSettingValue } from "./settings";
import { confirmRestart, creativeModeThreshold, restart } from "./game"; import { confirmRestart, creativeModeThreshold, restart } from "./game";
import { asyncAlert, requiredAsyncAlert } from "./asyncAlert"; import { requiredAsyncAlert } from "./asyncAlert";
import { describeLevel, highScoreForMode } from "./game_utils"; import { describeLevel, highScoreForMode } from "./game_utils";
export function creativeMode(gameState: GameState) { export function creativeMode(gameState: GameState) {

View file

@ -1 +1 @@
"29058469" "29058637"

View file

@ -240,3 +240,11 @@ export function highScoreForMode(mode: GameState["mode"]) {
return ""; return "";
} }
try {
const old = localStorage.getItem("breakout-3-hs");
if (old) {
localStorage.setItem("breakout-3-hs-short", old);
localStorage.removeItem("breakout-3-hs");
}
} catch (e) {}

View file

@ -64,7 +64,9 @@ export function newGameState(params: RunParams): GameState {
lastExplosion: -1000, lastExplosion: -1000,
lastBrickBroken: 0, lastBrickBroken: 0,
highScore: parseFloat( highScore: parseFloat(
localStorage.getItem("breakout-3-hs-" + params?.mode || "short") || "0", localStorage.getItem(
"breakout-3-hsbreakout-3-hs-" + params?.mode || "short",
) || "0",
), ),
balls: [], balls: [],
ballsColor: "white", ballsColor: "white",