Mario: add basic big mario logic
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
|
||||
class GoombaVisitor : public SDLPP::Visitor {
|
||||
public:
|
||||
GoombaVisitor() = default;
|
||||
GoombaVisitor() = delete;
|
||||
GoombaVisitor(const SDLPP::Vec2D<double> &pos) : goomba_pos(pos) {}
|
||||
void visit(const SDLPP::RenderObject &obj) override;
|
||||
bool isOnGround() const {
|
||||
return onGround;
|
||||
@@ -59,6 +60,7 @@ private:
|
||||
bool top_hit = false;
|
||||
SDLPP::Vec2D<double> movement_blockage;
|
||||
double validXPos = 0;
|
||||
const SDLPP::Vec2D<double> goomba_pos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user