24 lines
548 B
C++
24 lines
548 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;
|
|
float m_thickness;
|
|
bool m_jumping;
|
|
sf::Vector2<float> get_velocity();
|
|
bool get_jumping();
|
|
|
|
// private:
|
|
};
|
|
|
|
#endif
|