In this chapter, we are finishing up our Roguelike game with the final addition of music. There is still plenty of polishing we can do to the game, such as adding stories or quests, other game sounds, and opening/closing screens. However, the extras can be left to you to finish with your newly acquired knowledge of PCG.
Music is one of the more theoretical subjects we can attempt to procedurally generate. We need general knowledge of how to procedurally generate content and we also need knowledge of music theory so that we can construct a coherent melody. Don't worry, though; we will go through the steps that will give us the information that we need to tackle this task. Here's what you will learn in this chapter: