Add coin animation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef COIN_BLOCK_HPP
|
||||
#define COIN_BLOCK_HPP
|
||||
|
||||
#include "../blocks.hpp"
|
||||
|
||||
class CoinBlock : public MarioBlock {
|
||||
public:
|
||||
CoinBlock( int x, int y, std::shared_ptr< SDLPP::Renderer > renderer );
|
||||
virtual void custom_move(int ticks) override;
|
||||
void setParent(MarioBlock *parent);
|
||||
private:
|
||||
MarioBlock *_parent;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user