From 93b3e4004387047c25b2f5a190aced01c9091934 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 2 Feb 2021 19:34:48 -0500 Subject: Added collision with map tiles --- src/map.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 1031996..2f8ec1a 100644 --- a/src/map.h +++ b/src/map.h @@ -12,6 +12,7 @@ struct Tile { unsigned int id = 0; bool flipHorizontal = false; bool flipVertical = false; + bool blocked = false; }; class Map { @@ -29,6 +30,8 @@ public: int getTilesetColumns() const { return tilesetColumns_; } + bool isBlocked(int x, int y) const; + private: vec2i mapSize_; -- cgit 1.4.1