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
- To develop our PCG Game Board
By the end of the chapter, you will have developed a PCG game world that is unique with every play. Plus, you will have achieved this with a relatively small amount of assets. We have to do some learning and...