Skip to main content

Audio

  • Chapter
  • First Online:
Java Game Development with LibGDX
  • 1966 Accesses

Abstract

In this chapter, you will learn how to add audio elements—sound effects and background music—to your game. First, you will be introduced to these topics by adding these features to the Starfish Collector game that you have been working on in previous chapters. Then, in an optional section, you will build on these skills with a musical rhythm-based game, called Rhythm Tapper, in which the player presses a sequence of keys indicated by falling objects overlapping targets, all of which is synchronized with music playing in the background. A screenshot of Rhythm Tapper is shown in Figure 6-1.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The website incompetech.com has a great selection of music freely available to download and released under the Creative Commons Attribution 3.0 license.

  2. 2.

    The website audionautix.com has a great selection of music freely available to download and released under the Creative Commons Attribution 3.0 license.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Lee Stemkoski

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Stemkoski, L. (2018). Audio. In: Java Game Development with LibGDX. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3324-5_6

Download citation

Publish with us

Policies and ethics