O'Reilly logo

Libgdx Cross-platform Game Development Cookbook by Alberto Cejas Sánchez, David Saltares Márquez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Engine sounds with dynamic audio

Some effects have a dynamic nature and cannot be achieved by simply playing a plain audio file. Imagine a car engine; the sound it makes depends on many factors such as the type of engine and the revolutions per minute it is running at. Since a user can accelerate or hit the brake at any point in time, developers need to play audio in an adaptive manner.

Many games also have a dynamic soundtrack. Shadow of the Colossus (PlayStation 2, 2005) comes to mind when thinking of music that adapts to gameplay. In this game, the player has to defeat a series of giant beasts by climbing on them and striking weak spots. Music would smoothly change to accompany the mood of the moment. We are not talking about changing music ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required