Build 29083446

This commit is contained in:
Renan LE CARO 2025-04-18 22:06:16 +02:00
parent a388cd0898
commit b891e0fafb
7 changed files with 24 additions and 17 deletions

View file

@ -27,6 +27,8 @@ Other translation are very welcome, contact me if you'd like to submit one.
## Done ## Done
## 29083397
- highlight last used creative level - highlight last used creative level
- access autoplay mode from the menu - access autoplay mode from the menu
- access stress test mode from the menu, show real time stats - access stress test mode from the menu, show real time stats

View file

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

15
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 = "29083397"; const VERSION = "29083446";
// 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 @@
"29083397" "29083446"

View file

@ -111,6 +111,7 @@ export function render(gameState: GameState) {
if (!isOptionOn("basic") && level.svg && level.color === "#000000") { if (!isOptionOn("basic") && level.svg && level.color === "#000000") {
const haloScale = getHaloScale(); const haloScale = getHaloScale();
startWork("render:halo:clear"); startWork("render:halo:clear");
haloCanvasCtx.globalCompositeOperation = "source-over"; haloCanvasCtx.globalCompositeOperation = "source-over";
haloCanvasCtx.globalAlpha = 0.99; haloCanvasCtx.globalAlpha = 0.99;
haloCanvasCtx.fillStyle = level.color; haloCanvasCtx.fillStyle = level.color;
@ -547,8 +548,8 @@ export function render(gameState: GameState) {
ctx, ctx,
gameState, gameState,
(hasCombo && gameState.perks.compound_interest && "#FF0000") || (hasCombo && gameState.perks.compound_interest && "#FF0000") ||
(isOptionOn("mobile-mode") && "#FFFFFF") || (isOptionOn("mobile-mode") && "#666666") ||
(corner && "#FFFFFF") || (corner && "#666666") ||
"", "",
gameState.offsetXRoundedDown - corner, gameState.offsetXRoundedDown - corner,
gameState.gameZoneHeight - 1, gameState.gameZoneHeight - 1,
@ -622,22 +623,25 @@ export function render(gameState: GameState) {
function drawStraightLine( function drawStraightLine(
ctx: CanvasRenderingContext2D, ctx: CanvasRenderingContext2D,
gameState: GameState, gameState: GameState,
mode: "#FFFFFF" | "" | "#FF0000", mode: "#FFFFFF" | "" | "#FF0000" | string,
x1, x1,
y1, y1,
x2, x2,
y2, y2,
alpha = 1, alpha = 1,
) { ) {
x1 = Math.round(x1);
y1 = Math.round(y1);
x2 = Math.round(x2);
y2 = Math.round(y2);
ctx.globalAlpha = alpha; ctx.globalAlpha = alpha;
if (!mode) return; if (!mode) return;
ctx.strokeStyle = mode;
if (mode == "#FF0000") { if (mode == "#FF0000") {
ctx.strokeStyle = "#FF0000";
ctx.lineDashOffset = getDashOffset(gameState); ctx.lineDashOffset = getDashOffset(gameState);
ctx.lineWidth = 2; ctx.lineWidth = 2;
ctx.setLineDash(redBorderDash); ctx.setLineDash(redBorderDash);
} else { } else {
ctx.strokeStyle = "#FFFFFF";
ctx.lineWidth = 1; ctx.lineWidth = 1;
} }
ctx.beginPath(); ctx.beginPath();