How do I stop a looping music file from playing in crafty.js? I want the music to stop playing once a gameover condition has been reached.
According to this issue page:
Crafty.audio.stop() to stop all sounds. Apparently the documentation is very out of date. The issue linked is from 10 months ago, and the documentation is still out of date.
However, you can always check the source code to see what's available to you.