Basic tile map implemented.
This commit is contained in:
parent
290affa49a
commit
b66a3154c7
9 changed files with 135 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue