diff --git a/platform.hpp b/platform.hpp new file mode 100644 index 0000000..bdccc3a --- /dev/null +++ b/platform.hpp @@ -0,0 +1,14 @@ +#pragma once +#include +class Platform { + +private: + + sf::RectangleShape shape; //візуальна частина платформи + +public: + + Platform(float x, float y, float width, float height); + void draw(sf::RenderWindow& window); + sf::FloatRect getBounds() const; //щоб перевірити зіткнення +};