Game Development Reference
In-Depth Information
How it works…
How the AVAudioPlayer works and how the background music and sound effects are
played has been explained in the preceding topic. Here the difference between background
music and sound effect was the numberOfLoops property of AVAudioPlayer object. It
was -1 for the background music and 1 for sound effect of collecting the coin by the
spaceship.
Search WWH ::




Custom Search