This commit is contained in:
Renan LE CARO 2025-03-22 16:59:13 +01:00
parent b0c7e8decd
commit e3f37a4cd9
6 changed files with 9 additions and 13 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 = 29044306 versionCode = 29044319
versionName = "29044306" versionName = "29044319"
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

@ -1271,7 +1271,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("\"29044306\""); module.exports = JSON.parse("\"29044319\"");
},{}],"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 = "29044306"; const VERSION = "29044319";
// 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 @@
"29044306" "29044319"

View file

@ -251,14 +251,11 @@ export function explosionAt(
y: number, y: number,
ball: Ball, ball: Ball,
) { ) {
const size = 1 + gameState.perks.bigger_explosions;
const size = 1 + gameState.perks.bigger_explosions;
schedulGameSound(gameState, "explode", ball.x, 1); schedulGameSound(gameState, "explode", ball.x, 1);
if(index!==-1){ if (index !== -1) {
if (gameState.bricks[index] == "black") delete gameState.bricks[index]; if (gameState.bricks[index] == "black") delete gameState.bricks[index];
const col = index % gameState.gridSize; const col = index % gameState.gridSize;
const row = Math.floor(index / gameState.gridSize); const row = Math.floor(index / gameState.gridSize);
// Break bricks around // Break bricks around
@ -276,7 +273,6 @@ export function explosionAt(
} }
} }
} }
} }
// Blow nearby coins // Blow nearby coins
forEachLiveOne(gameState.coins, (c) => { forEachLiveOne(gameState.coins, (c) => {
@ -1001,7 +997,7 @@ export function gameStateTick(
clamp(b.y - y, -limit, limit) + clamp(b.y - y, -limit, limit) +
((Math.random() - 0.5) * limit) / 3; ((Math.random() - 0.5) * limit) / 3;
let index = brickIndex(x, y); let index = brickIndex(x, y);
explosionAt(gameState, index, x, y, a); explosionAt(gameState, index, x, y, a);
} }
}), }),