Chapter 3. Generating an Endless World

Our base project is setup and ready to be expanded upon. You received an intro to PRNs and PCG by making a quick Hello World program. However, it is time to develop a fully functional PCG algorithm that can be directly applied to our Roguelike game.

Our game has the base functionality of a player character capable of movement by player input. In this chapter, we will create the tile-based Game Board that the player will explore. This Game Board will expand itself as the player moves, and as there are no bounds, the board is potentially infinite. In this chapter, you can expect:

  • To learn about dynamic data structures
  • To design our first PCG algorithm
  • To set up a scene that allows for an ever expanding game world ...

Get Procedural Content Generation for Unity 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.