This commit is contained in:
DarthMooMancer
2025-10-16 16:20:57 -04:00
parent c77b350de6
commit ec079b757f
5 changed files with 1390 additions and 10 deletions
+15 -2
View File
@@ -4,20 +4,33 @@
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/System/Vector2.hpp>
class Entity {
protected:
sf::RectangleShape rect;
sf::Color inside_color;
sf::Color border_color;
float top_left;
float bottom_left;
float top_right;
float bottom_right;
float acceleration;
float border_thickness;
};
class Player {
public:
Player(sf::Vector2<float> size, sf::Vector2<float> starting_position, float acceleration, float initial_acceleration, float thickness, float velocity_x);
Player(sf::Vector2<float> size, sf::Vector2<float> starting_position, float acceleration, float initial_acceleration, float thickness, float velocity_x, sf::Color inside_color, sf::Color border_color);
sf::RectangleShape rect;
sf::Vector2<float> m_size;
sf::Vector2<float> m_velocity;
float m_acceleration;
float m_jump_strength;
float m_thickness;
bool m_jumping;
void handle_movment();
sf::Vector2<float> get_velocity();
bool get_jumping();
// private:
};
#endif