Basic tile map implemented.

This commit is contained in:
Zed A. Shaw 2024-12-20 19:39:11 -05:00
parent 290affa49a
commit b66a3154c7
9 changed files with 135 additions and 12 deletions

View file

@ -76,6 +76,14 @@ namespace matrix {
return res;
}
inline size_t width(Matrix &mat) {
return mat[0].size();
}
inline size_t height(Matrix &mat) {
return mat.size();
}
void dump(const std::string &msg, Matrix &map, int show_x=-1, int show_y=-1);
struct flood {