This commit is contained in:
Renan LE CARO 2025-02-21 00:30:28 +01:00
parent 75f231015d
commit deb574a441
2 changed files with 4 additions and 6 deletions

View file

@ -27,10 +27,10 @@ There's also an easy mode for kids (slower ball) and a color-blind mode (no colo
## Doing ## Doing
- publish on Fdroid - publish on Fdroid
- enable gif export of gameplay capture
- enable export of gameplay capture in webview
## Perk ideas ## Perk ideas
- wrap left / right - wrap left / right
- puck bounce predictions (using particles)
- n% of the broken bricks respawn when the ball touches the puck - n% of the broken bricks respawn when the ball touches the puck
- bricks take twice as many hits but drop 50% more coins - bricks take twice as many hits but drop 50% more coins
- wind (puck positions adds force to coins and balls) - 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 - keyboard support
- Offline mode web for iphone - Offline mode web for iphone
- webgl rendering - webgl rendering
- enable export of gameplay capture in webview
## Level ides ## Level ides

View file

@ -2540,7 +2540,6 @@ function repulse(a, b, power, impactsBToo) {
a.vx -= dx * fact a.vx -= dx * fact
a.vy -= dy * fact a.vy -= dy * fact
if (!isSettingOn('basic')) {
const speed = 10 const speed = 10
const rand = 2 const rand = 2
flashes.push({ flashes.push({
@ -2570,7 +2569,6 @@ function repulse(a, b, power, impactsBToo) {
vy: dy * speed + b.vy + (Math.random() - 0.5) * rand, vy: dy * speed + b.vy + (Math.random() - 0.5) * rand,
}) })
} }
}
} }
@ -2590,7 +2588,6 @@ function attract(a, b, power) {
a.vx -= dx * fact a.vx -= dx * fact
a.vy -= dy * fact a.vy -= dy * fact
if (!isSettingOn('basic')) {
const speed = 10 const speed = 10
const rand = 2 const rand = 2
flashes.push({ flashes.push({
@ -2617,7 +2614,6 @@ function attract(a, b, power) {
vx: -dx * speed + b.vx + (Math.random() - 0.5) * rand, vx: -dx * speed + b.vx + (Math.random() - 0.5) * rand,
vy: -dy * speed + b.vy + (Math.random() - 0.5) * rand, vy: -dy * speed + b.vy + (Math.random() - 0.5) * rand,
}) })
}
} }
let levelIconHTMLCanvas = document.createElement('canvas') let levelIconHTMLCanvas = document.createElement('canvas')
@ -2723,6 +2719,7 @@ function startRecordingGame() {
gifCanvas.width = Math.floor(gameZoneWidthRoundedUp * scale / 2) gifCanvas.width = Math.floor(gameZoneWidthRoundedUp * scale / 2)
gifCanvas.height = Math.floor(gameZoneHeight * scale / 2) gifCanvas.height = Math.floor(gameZoneHeight * scale / 2)
// Gif worker won't work there // Gif worker won't work there
if (window.location.protocol !== "file:" && isSettingOn('gif')) { if (window.location.protocol !== "file:" && isSettingOn('gif')) {
nthGifFrame = 0 nthGifFrame = 0