O'Reilly logo

Procedural Content Generation for Unity Game Development by Ryan Watkins

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

Chapter 4. Generating Random Dungeons

Our PCG Roguelike game is developing nicely. In the previous chapter, we produced a game board that expanded as the player explored the game. We are going to continue with the game board idea with a new type of board, the Dungeon Board. We will thus refer to our initial game board as the world board. The world board will be persistent and lead the player to instances of Dungeon Boards. Though we could add many different game mechanics to the world board alone, we want to learn more of what PCG has to offer. In this chapter, we want to explore another type of PCG level creation. We are going to make a random dungeon generator.

Our world board is a type of player-driven PCG. The world board reveals the pieces ...

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