Mario: added destructible modifier to editor

This commit is contained in:
2021-05-26 00:46:19 +02:00
parent 6fe283bb34
commit c2fb78b0a6
12 changed files with 100 additions and 33 deletions
+9
View File
@@ -55,6 +55,14 @@ public:
return jumping && !top_hit;
}
const SDLPP::Vec2D<double> &getMovementBlockage() {
return movement_blockage;
}
double getStopX() {
return newX;
}
private:
bool onGround = false;
double groundY = 0;
@@ -69,6 +77,7 @@ private:
SDLPP::Vec2D<double> rightleftpos;
bool top_left_right = false;
bool jumping;
SDLPP::Vec2D<double> movement_blockage;
};
#endif