Return to Video

Asynchronous Loading - HTML5 Game Development

  • 0:00 - 0:03
    Now that their sound manager is initialized. The next thing we need to take
  • 0:03 - 0:07
    care of is actually loading our sound effects so that they're ready to play.
  • 0:07 - 0:11
    Now the Web Audio API is similar to the image loading process that we use for
  • 0:11 - 0:16
    Canvas. We only load images asynchronously. Now for essentially the same
  • 0:16 - 0:20
    reasons. So what we're going to do is check if the sound has already been
  • 0:20 - 0:24
    loaded. And if it is, we call our call back function. If its not we kick off a
  • 0:24 - 0:28
    load in the form of an XML a to the p request, and then assign a callback
  • 0:28 - 0:34
    function for once the load has completed. Finally we're going to return to
  • 0:34 - 0:38
    actual clip data either way. Now here's some skeleton code to get you up and
  • 0:38 - 0:42
    running. What we'd like you to do is to fill in the code So let them performs
  • 0:42 - 0:46
    the Asynchronous loading that I just desribed
タイトル:
Asynchronous Loading - HTML5 Game Development
概説:

more » « less
Video Language:
English
Team:
Udacity
プロジェクト:
CS255 - HTML5 Game Development
Duration:
0:47

English subtitles

改訂 Compare revisions