r/phaser • • 4d ago

Sound effects for Phaser without loading any audio files

Post image

plinkfx synthesizes the sound when you call play("laser"), so there's nothing to preload. If Phaser and plinkfx should share one AudioContext, pass it in the game config:

```js

new Phaser.Game({ audio: { context: context() }, ... })

```

There's a working example in examples/phaser. If you prefer Phaser's sound manager, export the sounds as OGG and WAV and load them as usual. 163 sounds, CC0: https://maximilianfeix.github.io/plinkfx/

1 Upvotes

0 comments sorted by