mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Renamed the dist directory to apply the gitignore to it
This commit is contained in:
parent
1839977fed
commit
afd0ccd5fc
13 changed files with 3782 additions and 60 deletions
|
@ -514,7 +514,7 @@ export function repulse(
|
|||
) {
|
||||
const distance = distanceBetween(a, b);
|
||||
// Ensure we don't get soft locked
|
||||
const max = gameState.gameZoneWidth / 2;
|
||||
const max = gameState.gameZoneWidth / 4;
|
||||
if (distance > max) return;
|
||||
// Unit vector
|
||||
const dx = (a.x - b.x) / distance;
|
||||
|
@ -569,7 +569,7 @@ export function repulse(
|
|||
export function attract(gameState: GameState, a: Ball, b: Ball, power: number) {
|
||||
const distance = distanceBetween(a, b);
|
||||
// Ensure we don't get soft locked
|
||||
const min = gameState.gameZoneWidth * 0.5;
|
||||
const min = (gameState.gameZoneWidth * 3) / 4;
|
||||
if (distance < min) return;
|
||||
// Unit vector
|
||||
const dx = (a.x - b.x) / distance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue