Chapter 9. Procedural Dungeon Generation

Perhaps the most iconic and defining feature of roguelike games is their procedurally generated levels. This is one of the main features that contributes to the replayability that the genre is renowned for having. It keeps the game fresh and challenging and the players on their toes.

Throughout the course of this book, we've progressed from the simple generation of single numbers to the implementation of complex procedural behavior, such as path finding. It's time for our pièce de résistance: procedurally generating our levels. In addition to this, we'll also work on making levels more distinct using the functions that we created in Chapter 6, Procedurally Generating Art.

In this chapter, we'll cover the ...

Get Procedural Content Generation for C++ Game Development 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.