Mario: add bouncing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user