News for hackers. Stuff that matters.
Re:Pull this up in your Android or iOS browser: Defense by pilif on Wednesday February 29, 2012 @11:45PM (#3650958)
It's such a shame that the HTML5 audio API's are still such a minefield that all these demos usually are silent.

Or the reverse: by now I have seen too many HTML/JS based games to remain really impressed by the technology - unless the demos start to provide audio.

Because honestly, a game like this needs matching 8bit sound effects. Too bad it's practically impossible to play them in a timely fashion, nor mix multiple of them together, let alone reliably generate them based on game state

Re:Pull this up in your Android or iOS browser: Defense by mcav on Thursday March 01, 2012 @01:39AM (#3651197)
On iOS, you can usually get sound effects or music working pretty well int terms of latency, but not both. For a while Android had decent flash support for multiple sounds at once in the browser. I agree, sound is really the most lacking in mobile browsers.
Re:Pull this up in your Android or iOS browser: Defense by huskyr on Thursday March 01, 2012 @05:51AM (#3651648)
Hmm.. how do you get sound effects working 'pretty well' in iOS? Apart from the latency the big problem is that you always need a user action (such as a click on a button) for sound to start (1), which is pretty hard for games.

[1] http://weblogs.vpro.nl/digitaal/2011/11/04/why-html5-audiovi...

Re:Pull this up in your Android or iOS browser: Defense by richtaur on Thursday March 01, 2012 @02:17PM (#3653555)
1. Wait for user input before loading 2. Load up a "sound sprite" (kind of like a sprite sheet for audio) since iOS only supports playing one sound at a time 3. PROFIetc.
Re:Pull this up in your Android or iOS browser: Defense by huskyr on Thursday March 01, 2012 @06:47PM (#3654682)
Do you have any working examples? Would love to see this working in practice.