When Tarzan Jr was created, there wasn't a requirement that all assets be loaded from a server, webaudio didn't exist, platform checks were necessary all over the place, etc. Right? Or was Tarzan Jr later than I realized? I got the impression it was contemporary with my JS games.
Never been able to get post HTML5 JS to do sound in any usable way. The embedded audio method I used in the 00s seems like it was unreliable from the beginning, and that's gotten more true as browsers evolved. Also I can't use hidden=true to hide the players from screen readers, which would be fine except that my old games used the text on the page, not just audio. ... Now that I think of it, I haven't even bothered with figuring out how to communicate with screen readers through post 2009 JS. I mostly just give up when I can't get sound and the like working, so it never seemed worth looking into.
And where <embed> is concerned, I have no idea what properties are reliably supported anymore. In the days of IE6, I could rely on IE6 supporting balance, volume, and sometimes rate, but any other browser was a gamble. I mean, making a position_sound function that says if(mysound.balance) mysound.balance=x would probably cover that, I suppose.
I've never been able to get the likes of howl.js etc to do anything whatsoever.
Some of my games
Keep up to date by following @Jeqofire on twitter!Ear Ninja?