Maze works well now and there's something placed in all rooms and dead ends. Will need to randomize it more so not every dead end is an enemy.

This commit is contained in:
Zed A. Shaw 2025-05-19 11:19:33 -04:00
parent a0b785cb2a
commit ac252bf09d
7 changed files with 48 additions and 77 deletions

View file

@ -19,8 +19,6 @@ struct Room {
size_t y = 0;
size_t width = 0;
size_t height = 0;
Point entry{(size_t)-1, (size_t)-1};
Point exit{(size_t)-1, (size_t)-1};
};
class Map {
@ -31,6 +29,7 @@ public:
Matrix $walls;
Pathing $paths;
std::vector<Room> $rooms;
std::vector<Point> $dead_ends;
Map(size_t width, size_t height);