Mario: top collision detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user