This commit is contained in:
Renan LE CARO 2025-03-24 12:53:09 +01:00
parent 8b8e49595d
commit 7fec2adf8c
6 changed files with 8 additions and 10 deletions

View file

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

@ -1368,7 +1368,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("\"29046822\""); module.exports = JSON.parse("\"29046953\"");
},{}],"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");

View file

@ -1,5 +1,5 @@
// The version of the cache. // The version of the cache.
const VERSION = "29046822"; const VERSION = "29046953";
// 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 @@
"29046822" "29046953"

View file

@ -438,12 +438,11 @@ export function explodeBrick(
if ( if (
gameState.perks.nbricks && gameState.perks.nbricks &&
ball.brokenSinceBounce == gameState.perks.nbricks+1 ball.brokenSinceBounce == gameState.perks.nbricks + 1
) { ) {
resetCombo(gameState, ball.x, ball.y); resetCombo(gameState, ball.x, ball.y);
} }
if (!isExplosion) { if (!isExplosion) {
// color change // color change
if ( if (
@ -1445,7 +1444,7 @@ export function ballTick(gameState: GameState, ball: Ball, delta: number) {
} }
if ( if (
gameState.perks.nbricks && gameState.perks.nbricks &&
ball.brokenSinceBounce< gameState.perks.nbricks ball.brokenSinceBounce < gameState.perks.nbricks
) { ) {
resetCombo(gameState, ball.x, ball.y); resetCombo(gameState, ball.x, ball.y);
} }
@ -1561,7 +1560,6 @@ export function ballTick(gameState: GameState, ball: Ball, delta: number) {
const initialBrickColor = gameState.bricks[hitBrick]; const initialBrickColor = gameState.bricks[hitBrick];
ball.brokenSinceBounce++; ball.brokenSinceBounce++;
explodeBrick(gameState, hitBrick, ball, false); explodeBrick(gameState, hitBrick, ball, false);
if ( if (
ball.sapperUses < gameState.perks.sapper && ball.sapperUses < gameState.perks.sapper &&