Vast improvement in the world generation, with more reliable pathing, cleaner generation code, and an ability to do a random or direct walk to create paths. This also works with enemies if I want.

This commit is contained in:
Zed A. Shaw 2024-12-03 19:17:20 -05:00
parent c7607533ce
commit 0b4392dbcc
7 changed files with 151 additions and 77 deletions

View file

@ -13,6 +13,8 @@ class WorldBuilder {
void add_door(Room &room);
void generate();
void set_door(Room &room, int value);
void place_rooms(Room &root);
bool dig_tunnel(Point &src, Point &target);
void place_rooms();
bool dig_tunnel(PointList &holes, Point &src, Point &target);
void tunnel_doors(PointList &holes, Room &src, Room &target);
void update_door(Point &at, int wall_or_space);
};