UQdeco2800 / 2021-studio-7

6 stars 2 forks source link

Interior rotation in random map generation #172

Closed Jantoom closed 3 years ago

Jantoom commented 3 years ago

The algorithm now attempts to create rooms that will not block doorways. It does this by rotating the interior clockwise and checking after every rotation whether it will block any doorways from the floor plan. An interior won't be picked if none of its configurations successfully allow the player to use the doorway.