© Lee Stemkoski 2018
Lee StemkoskiJava Game Development with LibGDXhttps://doi.org/10.1007/978-1-4842-3324-5_6

6. Audio

Lee Stemkoski1 
(1)
DEPT OF MATH & CS, ADELPHI UNIVERSITY DEPT OF MATH & CS, Garden City, New York, USA
 
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. ...

Get Java Game Development with LibGDX: From Beginner to Professional 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.