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

@ -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