Our hero can walk around the world and won't go through walls.

This commit is contained in:
Zed A. Shaw 2024-09-30 00:04:58 -04:00
parent bcc524861e
commit 2e8abbaf5e
3 changed files with 49 additions and 25 deletions

View file

@ -292,6 +292,10 @@ void Map::generate() {
}
}
bool Map::iswall(size_t x, size_t y) {
return m_walls[y][x] == WALL_VALUE;
}
void Map::dump() {
dump_map("PATHS", m_paths);