Jump to content

How to add audios in javascript for mobile web game


Hester
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...