dill pixel uses the Howler.js audio library for playing sounds and music in your game.
Playing Audio
If you have two audio files – sound.mp3 and sound.webm – in your src/assets/audio/output folder and
you’ve configured Vite to serve the assets, you can load
them into your game like this:
Categories
Audio tracks can be categorized, which allows similar types of sounds
to be grouped together. This can be useful for controlling the volume of a group of sounds (e.g. sound effects, background music, voiceovers)