In this chapter, we explored the LibGDX classes, Music
and Sound
, for playing audio. We learned how the observer pattern can be used in a different way, with AudioSubject
and AudioObserver
. We also implemented the AudioManager
class to manage the AudioObserver
notifications from all the AudioSubject
objects. Finally, we learned about the Action
objects and how these tasks can be used to create cutscenes as implemented in CutSceneScreen
.
In the next chapter, we will wrap up the last of the features for our game, including a shake camera, static lighting, particle effects, screen transitions, and a day-night cycle.