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:
parent
a0b785cb2a
commit
ac252bf09d
7 changed files with 48 additions and 77 deletions
3
map.hpp
3
map.hpp
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue