A RoomGenerator is now made up of two "method" classes that do separate things: 1. A RectMethod takes the size of the area to generate and creates an iterable stream of Rects to fill that area. 2. A RoomMethod takes a Rect and creates a room inside of it. These two components are composable in interesting ways, and allow a more data-driven approach to map generation, though I don't yet have the ability to make this mechansim entirely data-driven. |
||
|---|---|---|
| .. | ||
| generator | ||
| __init__.py | ||
| grid.py | ||
| room.py | ||
| tile.py | ||