Mario: top collision detection

This commit is contained in:
2021-05-23 23:57:29 +02:00
parent 8672830db8
commit bea479bf72
4 changed files with 12 additions and 1 deletions
+4
View File
@@ -41,6 +41,9 @@ public:
double getGroundY() {
return groundY;
}
bool topBlock() {
return top_hit;
}
private:
bool onGround = false;
@@ -52,6 +55,7 @@ private:
bool left = false;
bool right = false;
uint64_t _type = 0;
bool top_hit = false;
};
#endif