mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 22:16:14 -04:00
wip
This commit is contained in:
parent
75f231015d
commit
deb574a441
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue