fixes
This commit is contained in:
@@ -24,12 +24,20 @@ protected:
|
||||
float _border_thickness;
|
||||
};
|
||||
|
||||
struct Player_timers {
|
||||
float dash_cooldown { 0 };
|
||||
float dash_cooldown_max { 5 };
|
||||
};
|
||||
|
||||
class Player : public Entity {
|
||||
public:
|
||||
Player(sf::Vector2<float> size, sf::Vector2<float> pos, sf::Vector2f velocity, float border_thickness, float gravity, float max_acceleration, sf::Color inside_color, sf::Color border_color);
|
||||
Player(sf::Vector2<float> size, sf::Vector2<float> pos, sf::Vector2f velocity, float border_thickness, float gravity, float max_acceleration, float dash_distance, sf::Color inside_color, sf::Color border_color);
|
||||
float m_acceleration;
|
||||
float m_jump_strength;
|
||||
float m_dash_distance;
|
||||
bool m_jumping;
|
||||
bool m_dash;
|
||||
Player_timers timers;
|
||||
void handle_movment();
|
||||
void handle_gravity();
|
||||
bool get_jumping();
|
||||
|
||||
Reference in New Issue
Block a user