Mario: Fireball works

This commit is contained in:
2022-11-12 21:32:18 +01:00
parent 3cde73d1ed
commit 7bd652f4e9
19 changed files with 300 additions and 16 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef FIREBALL_HPP
#define FIREBALL_HPP
#include "../blocks.hpp"
class Fireball : public MarioBlock {
public:
Fireball(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
void custom_move(int ticks) override;
void handleVisitor(SDLPP::Visitor &visitor) override;
void setMovementDir(bool left);
private:
double jump_movement;
bool jumping = false;
long ticks_till_death = 3100;
};
#endif