mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
A bunch of perks
This commit is contained in:
parent
5abbf5263e
commit
dce41a43ec
9 changed files with 2125 additions and 1372 deletions
|
@ -103,6 +103,10 @@ export function distanceBetween(
|
|||
return Math.sqrt(distance2(a, b));
|
||||
}
|
||||
|
||||
|
||||
export function clamp(value, min, max){
|
||||
return Math.max(min, Math.min(value, max))
|
||||
}
|
||||
export function defaultSounds() {
|
||||
return {
|
||||
aboutToPlaySound: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue