mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 21:46:15 -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
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29040063";
|
||||
const VERSION = "29040073";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29040063"
|
||||
"29040073"
|
||||
|
|
|
@ -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