James Hancock
asked on
Do most javascript games avoid sound?
Hi,
if I make a Javascript game, most I see on my phone don't do sound.
Is that the norm? Avoiding sound? I couldn't see .wav or .mp3 in their code
One time ago my dad had game swirling sounds playing loud from his laptop, and the cats became very upset.
Thanks
if I make a Javascript game, most I see on my phone don't do sound.
Is that the norm? Avoiding sound? I couldn't see .wav or .mp3 in their code
One time ago my dad had game swirling sounds playing loud from his laptop, and the cats became very upset.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Games are often built for a target audience. On a mobile device this means that if you download sound you'll be spending extra bandwidth on something that you're probably playing in a public setting with the sound off.
That said there are many libraries out there which help to simplify working with audio in javascript, such as https://howlerjs.com/