Calling Cellular Automata Maps

Learn how to place the adventurer and call cellular automata maps.

Place the adventurer

In the room-based architecture, placing the adventurer was easy. We simply put them in the first room. But now, there are no clearly defined rooms with this algorithm, so we have to use a different approach. In this case, we’ll find all of the floor tiles and determine their distance to the center. We’ll then start the player in the closest open tile to the center. Add another function to CellularAutomataArchitect:

Get hands-on with 1200+ tech skills courses.