6 ms·
Canvas doesn't have any kind of support for playing music, but there is a (flash) based sound manager that works everywhere and Chrome has some facility for pla
by tomjen3 14y ago
Canvas doesn't have any kind of support for playing music, but there is a (flash) based sound manager that works everywhere and Chrome has some facility for playing sound too.
However making music is an art not all programmers have mastered, so most would likely skip that step.
- city41 14y agoAll modern browsers support the HTML5 audio tag.
- tomjen3 14y agoYeah but that isn't really good enough to play sounds in (for a game).
- city41 14y agoI disagree, it's not the best, but it's decent enough for most games. Most HTML5 game engines use the audio tag. My game uses a good amount of sound effects and background music just fine with the audio tag: http://cityfortyone-mattgreer.dotcloud.com/dragonPlunder/ http://cityfortyone-mattgreer.dotcloud.com/dragonPlunder/