Files
engine/include/player.hpp
T
2025-10-15 22:01:57 -04:00

24 lines
552 B
C++

#ifndef PLAYER_HPP
#define PLAYER_HPP
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/System/Vector2.hpp>
class Player {
public:
Player(sf::Vector2<float> size, sf::Vector2<float> starting_position, float acceleration, float initial_acceleration, float thickness, float velocity_x);
sf::RectangleShape rect;
sf::Vector2<float> m_size;
sf::Vector2<float> m_velocity;
float m_acceleration;
float m_jump_strength;
bool m_jumping;
void handle_movment();
sf::Vector2<float> get_velocity();
bool get_jumping();
// private:
};
#endif