Summary
In this chapter, we have learned what spatialization is and that it enables us to add direction to sound in our games. We went on to learn the theory of how SFML handles spatialization. We then upgraded the SoundEngine
class to make spatialized noises and finally coded the fireball-related classes (Graphics
and Update
derived) that make spatialized sounds and launch some fireballs in the game. In the next chapter, we will add a cool parallax background and a somewhat stunning shader effect.