Mario: add bouncing

This commit is contained in:
2021-05-25 22:05:50 +02:00
parent 0c4f2482c7
commit 6fe283bb34
4 changed files with 47 additions and 4 deletions
+6
View File
@@ -11,11 +11,17 @@ public:
void visit( SDLPP::Visitor &visitor ) override;
void setTool( bool tool = true );
void setTerrain( bool terrain = true );
void bounce();
virtual void custom_move(int ticks) override;
private:
bool _tool = false;
bool _terrain = true;
bool _destructible = false;
bool _bouncing = false;
const int bounce_ticks = 100;
int ticks_to_bounce = bounce_ticks;
SDLPP::Vec2D<double> og_pos = {};
};
extern const std::vector< uint64_t > possibleBlocks;