Refactor to use objects for terrain/mod creation, added coin modifier

This commit is contained in:
2021-07-23 00:08:05 +02:00
parent 79d9f266b4
commit 3be728843a
15 changed files with 1384 additions and 127 deletions
+9
View File
@@ -63,6 +63,14 @@ public:
return newX;
}
void setCoin() {
coin = true;
}
bool hasCoin() {
return coin;
}
private:
bool onGround = false;
double groundY = 0;
@@ -77,6 +85,7 @@ private:
SDLPP::Vec2D<double> rightleftpos;
bool top_left_right = false;
bool jumping;
bool coin = false;
SDLPP::Vec2D<double> movement_blockage;
};