mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-26 15:06:16 -04:00
Overcomplicated looping mechanic
This commit is contained in:
parent
5012076039
commit
39b326a15b
18 changed files with 296 additions and 125 deletions
|
@ -54,6 +54,11 @@ export const sounds = {
|
|||
createSingleBounceSound(1200, pan, volume, 0.5, "sawtooth");
|
||||
createSingleBounceSound(600, pan, volume, 0.3, "sawtooth");
|
||||
},
|
||||
freeze: (volume: number, pan: number) => {
|
||||
if (!isOptionOn("sound")) return;
|
||||
createSingleBounceSound(220, pan, volume, 0.5, "square");
|
||||
createSingleBounceSound(440, pan, volume, 0.5, "square");
|
||||
},
|
||||
explode: (volume: number, pan: number, combo: number) => {
|
||||
if (!isOptionOn("sound")) return;
|
||||
createExplosionSound(pan);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue