4 ms·
> not a whiff of Flash in sight! How do you handle sound? HTML5 sound is still very insufficient for games at the moment in my experience.
by johnyzee 15y ago
> not a whiff of Flash in sight!
How do you handle sound? HTML5 sound is still very insufficient for games at the moment in my experience.
- TomGullen 15y agoThis game doesn't have sound, but Construct 2 does allow for it. We've actually blogged about HTML5 sound quite a lot: http://www.scirra.com/blog/46/more-on-html5-audio-codecs-and-politics http://www.scirra.com/blog/46/more-on-html5-audio-codecs-and... It's a bit of a minefield and is difficult to manage. MP3 has some strict licensing rules in regards to distributing games so we made a point of avoiding it. What we do is dual encode every sound to .ogg and .m4a, this will cover all browsers/devices. It's not the best solution space wise but it's safe and works pretty well. We hope browsers make significant upgrades to HTML5 audio at some point! The easy option is to use Flash to handle sounds but we think this is cheating, we're kinda HTML5 purists :)
- AshleysBrain 15y agoScirra dev here - we use HTML5 <audio> with some hacks that makes it just about work. The next release in a week or two includes support for Chrome's Web Audio API, which is a lot better and more stable, it's really a great API. Hoping more browsers support that soon.