Fixed missing audio in web version


We finally fixed the missing audio in the web build :)

In addition, I added a few small improvement to the game flow.


If any sound designers are interested in the bug:
We were trying start audio before the FMOD's banks were loaded.
Turns out in web builds, you must load the banks asynchronously and make sure they are loaded before starting any sound.
I solved this by creating an extension method which starts a sound only if the bank was loaded.
Usually the correct way to approach this would be to use a loading screen, but I preferred not to start designing and implementing that :)

Get Pharaoh's Comb

Leave a comment

Log in with itch.io to leave a comment.