mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 13:06:15 -04:00
Build 29046822
This commit is contained in:
parent
c48b379098
commit
39cf4a4d04
8 changed files with 31 additions and 25 deletions
|
@ -11,8 +11,8 @@ android {
|
|||
applicationId = "me.lecaro.breakout"
|
||||
minSdk = 21
|
||||
targetSdk = 34
|
||||
versionCode = 29046079
|
||||
versionName = "29046079"
|
||||
versionCode = 29046822
|
||||
versionName = "29046822"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
|
|
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
|
@ -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) {
|
||||
module.exports = JSON.parse("\"29046079\"");
|
||||
module.exports = JSON.parse("\"29046822\"");
|
||||
|
||||
},{}],"1u3Dx":[function(require,module,exports,__globalThis) {
|
||||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
|
@ -3551,7 +3551,7 @@ function render(gameState) {
|
|||
ctx.globalAlpha = 1;
|
||||
ctx.globalCompositeOperation = "source-over";
|
||||
gameState.balls.forEach((ball)=>{
|
||||
const drawingColor = gameState.lastPuckMove && gameState.perks.passive_income && gameState.combo > (0, _gameStateMutators.baseCombo)(gameState) && gameState.lastPuckMove > gameState.levelTime - 500 * gameState.perks.passive_income && 'red' || gameState.ballsColor;
|
||||
const drawingColor = gameState.lastPuckMove && gameState.perks.passive_income && gameState.combo > (0, _gameStateMutators.baseCombo)(gameState) && gameState.lastPuckMove > gameState.levelTime - 500 * gameState.perks.passive_income && "red" || gameState.ballsColor;
|
||||
// The white border around is to distinguish colored balls from coins/bg
|
||||
drawBall(ctx, drawingColor, gameState.ballSize, ball.x, ball.y, gameState.puckColor);
|
||||
if ((0, _gameUtils.isTelekinesisActive)(gameState, ball) || (0, _gameUtils.isYoyoActive)(gameState, ball)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29046079";
|
||||
const VERSION = "29046822";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29046079"
|
||||
"29046822"
|
||||
|
|
|
@ -53,10 +53,8 @@ import { use } from "react";
|
|||
|
||||
export function setMousePos(gameState: GameState, x: number) {
|
||||
// Sets the puck position, and updates the ball position if they are supposed to follow it
|
||||
if (
|
||||
Math.abs(x - gameState.puckPosition) > 1
|
||||
) {
|
||||
gameState.lastPuckMove=gameState.levelTime
|
||||
if (Math.abs(x - gameState.puckPosition) > 1) {
|
||||
gameState.lastPuckMove = gameState.levelTime;
|
||||
}
|
||||
gameState.puckPosition = x;
|
||||
gameState.needsRender = true;
|
||||
|
@ -71,7 +69,7 @@ function getBallDefaultVx(gameState: GameState) {
|
|||
|
||||
export function resetBalls(gameState: GameState) {
|
||||
// Always compute speed first
|
||||
normalizeGameState(gameState)
|
||||
normalizeGameState(gameState);
|
||||
const count = 1 + (gameState.perks?.multiball || 0);
|
||||
const perBall = gameState.puckWidth / (count + 1);
|
||||
gameState.balls = [];
|
||||
|
@ -429,7 +427,12 @@ export function explodeBrick(
|
|||
}
|
||||
}
|
||||
|
||||
if(gameState.lastPuckMove && gameState.perks.passive_income && gameState.lastPuckMove>gameState.levelTime-500*gameState.perks.passive_income){
|
||||
if (
|
||||
gameState.lastPuckMove &&
|
||||
gameState.perks.passive_income &&
|
||||
gameState.lastPuckMove >
|
||||
gameState.levelTime - 500 * gameState.perks.passive_income
|
||||
) {
|
||||
resetCombo(gameState, x, y);
|
||||
}
|
||||
|
||||
|
@ -961,7 +964,7 @@ export function gameStateTick(
|
|||
}
|
||||
}
|
||||
|
||||
const speed =( Math.abs(coin.vx) + Math.abs(coin.vy)) * 10;
|
||||
const speed = (Math.abs(coin.vx) + Math.abs(coin.vy)) * 10;
|
||||
const hitBorder = bordersHitCheck(gameState, coin, coin.size / 2, frames);
|
||||
|
||||
if (
|
||||
|
|
|
@ -229,8 +229,14 @@ export function render(gameState: GameState) {
|
|||
ctx.globalCompositeOperation = "source-over";
|
||||
|
||||
gameState.balls.forEach((ball) => {
|
||||
|
||||
const drawingColor = (gameState.lastPuckMove&& gameState.perks.passive_income && gameState.combo>baseCombo(gameState) && gameState.lastPuckMove>gameState.levelTime-500*gameState.perks.passive_income && 'red')||gameState.ballsColor
|
||||
const drawingColor =
|
||||
(gameState.lastPuckMove &&
|
||||
gameState.perks.passive_income &&
|
||||
gameState.combo > baseCombo(gameState) &&
|
||||
gameState.lastPuckMove >
|
||||
gameState.levelTime - 500 * gameState.perks.passive_income &&
|
||||
"red") ||
|
||||
gameState.ballsColor;
|
||||
|
||||
// The white border around is to distinguish colored balls from coins/bg
|
||||
drawBall(
|
||||
|
@ -256,17 +262,13 @@ export function render(gameState: GameState) {
|
|||
);
|
||||
ctx.stroke();
|
||||
}
|
||||
if(gameState.perks.clairvoyant && gameState.ballStickToPuck){
|
||||
if (gameState.perks.clairvoyant && gameState.ballStickToPuck) {
|
||||
ctx.strokeStyle = gameState.ballsColor;
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(ball.x,ball.y);
|
||||
ctx.lineTo(
|
||||
ball.x+ball.vx*10,
|
||||
ball.y+ball.vy*10
|
||||
);
|
||||
ctx.moveTo(ball.x, ball.y);
|
||||
ctx.lineTo(ball.x + ball.vx * 10, ball.y + ball.vy * 10);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
});
|
||||
// The puck
|
||||
ctx.globalAlpha = 1;
|
||||
|
|
|
@ -572,7 +572,8 @@ export const rawUpgrades = [
|
|||
id: "passive_income",
|
||||
max: 4,
|
||||
name: t("upgrades.passive_income.name"),
|
||||
help: (lvl: number) => t("upgrades.passive_income.help",{time:lvl/2,lvl}),
|
||||
help: (lvl: number) =>
|
||||
t("upgrades.passive_income.help", { time: lvl / 2, lvl }),
|
||||
fullHelp: t("upgrades.passive_income.fullHelp"),
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue