Adding music and sounds to Canyon Bunny

Let us now add some music and sound effects to our game. First, we need to know what audio files are needed and then copy them to our assets folder.

Note

All assets shown and discussed in this book, including any other project files, can be downloaded from Packt's website at http://www.packtpub.com/learning-libgdx-game-development/book.

The following tables contain descriptions of each audio file and their function in Canyon Bunny:

  • Sounds (generated with bfxr):

    Filename

    Event

    jump.wav

    When player jumps

    jump_with_feather.wav

    When player jumps in mid-air (requires active feather power-up)

    pickup_coin.wav

    When player picks up a gold coin

    pickup_feather.wav

    When player picks up a feather power-up ...

Get Learning Libgdx Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.