Hester Posted July 11, 2016 Share Posted July 11, 2016 Hello, I download a source file of Doodle Jump game from https://github.com/ntcnet83/html5-doodle-jump How can I add some audio such as background music and jumping sound into the game? And how to trigger the "jumping audio" when the doodle jump up from the platform? I want to know how it is done via using javascript.. and what sound format is the best for the audio? Quote Link to comment Share on other sites More sharing options...
BobF Posted July 11, 2016 Share Posted July 11, 2016 Howler works well for me. The API is straightforward. I think they recommend using WEBM and also providing a fallback, such as MP3, and then let Howler decide which to use. Hester 1 Quote Link to comment Share on other sites More sharing options...
Hester Posted July 12, 2016 Author Share Posted July 12, 2016 mean we have to upload the sound to the cloud is it? i think this is very good idea.. Quote Link to comment Share on other sites More sharing options...
BobF Posted July 13, 2016 Share Posted July 13, 2016 On 7/12/2016 at 0:27 AM, Hester said: mean we have to upload the sound to the cloud is it? Well, the sounds are just media files you provide in much the same way you provide image files. Howler is a JS module you include with your other JS code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.