Mario: proper position when standing on ground

This commit is contained in:
2021-05-22 22:36:53 +02:00
parent d04cbea02d
commit 0358aa36c7
3 changed files with 11 additions and 4 deletions
+4
View File
@@ -38,9 +38,13 @@ public:
bool canGoRight() {
return !right;
}
double getGroundY() {
return groundY;
}
private:
bool onGround = false;
double groundY = 0;
bool death = false;
bool stop = false;
double newX;