The Dark Unknown: Sound & Music Working in Chrome and Firefox

I missed reporting on this earlier, but Goldenflame Dragon has also implemented sound effects and music in The Dark Unknown, his browser-based tiled RPG. Chrome support for sound came first:

Having pretty much finished the conversation system, I started working on sound. Music now works in Chrome but not FF, which is likely because the websites I’m looking at are lying when they say the new versions of FF let HTML5 work with mp3s. I’ll make ogg versions of my songs and see if they work. The [M] key toggles music on and off.

Firefox support, however, was added soon thereafter. The first sound effect (footsteps) was also added, as well:

Music works in FF now, and I have the first sound effect implemented- footsteps (thanks Sanctimonia!). Even with the sound file trimmed to .15s long, it was still possible to move quickly enough that it only played every second or third step, so now the game loads it twice (whimsically called “left” and “right”) and alternates which one it plays. Seems to work, and in both browsers. Gonna call it a day and go to a party.

Oh, and he also tweaked a key part of the game’s map:

Just a little thing, today- a little bit of progress on the light bug I noticed yesterday, but the one new thing is that the main castle now can only be entered from the south, mimicking the behavior of LB’s castle in Ultima IV.

In other words, work proceeds apace!