From deb574a441747d6ac93729b34b0bcaa164c05dda Mon Sep 17 00:00:00 2001 From: Renan LE CARO Date: Fri, 21 Feb 2025 00:30:28 +0100 Subject: [PATCH] wip --- Readme.md | 5 +++-- app/src/main/assets/game.js | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index ba0402d..2b1a3d7 100644 --- a/Readme.md +++ b/Readme.md @@ -27,10 +27,10 @@ There's also an easy mode for kids (slower ball) and a color-blind mode (no colo ## Doing - publish on Fdroid -- enable gif export of gameplay capture -- enable export of gameplay capture in webview + ## Perk ideas - wrap left / right +- puck bounce predictions (using particles) - n% of the broken bricks respawn when the ball touches the puck - bricks take twice as many hits but drop 50% more coins - wind (puck positions adds force to coins and balls) @@ -77,6 +77,7 @@ There's also an easy mode for kids (slower ball) and a color-blind mode (no colo - keyboard support - Offline mode web for iphone - webgl rendering +- enable export of gameplay capture in webview ## Level ides diff --git a/app/src/main/assets/game.js b/app/src/main/assets/game.js index c9c09df..7de4238 100644 --- a/app/src/main/assets/game.js +++ b/app/src/main/assets/game.js @@ -2540,7 +2540,6 @@ function repulse(a, b, power, impactsBToo) { a.vx -= dx * fact a.vy -= dy * fact - if (!isSettingOn('basic')) { const speed = 10 const rand = 2 flashes.push({ @@ -2570,7 +2569,6 @@ function repulse(a, b, power, impactsBToo) { vy: dy * speed + b.vy + (Math.random() - 0.5) * rand, }) } - } } @@ -2590,7 +2588,6 @@ function attract(a, b, power) { a.vx -= dx * fact a.vy -= dy * fact - if (!isSettingOn('basic')) { const speed = 10 const rand = 2 flashes.push({ @@ -2617,7 +2614,6 @@ function attract(a, b, power) { vx: -dx * speed + b.vx + (Math.random() - 0.5) * rand, vy: -dy * speed + b.vy + (Math.random() - 0.5) * rand, }) - } } let levelIconHTMLCanvas = document.createElement('canvas') @@ -2723,6 +2719,7 @@ function startRecordingGame() { gifCanvas.width = Math.floor(gameZoneWidthRoundedUp * scale / 2) gifCanvas.height = Math.floor(gameZoneHeight * scale / 2) + // Gif worker won't work there if (window.location.protocol !== "file:" && isSettingOn('gif')) { nthGifFrame = 0