Tuesday 28 February 2012

Beginning HTML5 Game Development – Adding Sound

Goals:
  • Learn to load sound files with the <audio> tag.
  • Learn to fire off a sound as a sound effect.
  • Learn to set up a bgm variable and update it.
What game is complete without adding sound? It’s not a difficult task thanks to the <audio> tag. Currently the supported formats are wav, mp3, and ogg all with varying support from different browsers. Wav seems to be the most supported so we’ll use it. View more

No comments:

Post a Comment