What does loop: true cause?
music.play({ loop: true });
- The track repeats continuously
- The track plays through only once
- The playback volume fades to zero
- The track plays back in reverse
Enabling loop restarts the track automatically when it ends.
Play Game Dev ▸