2d_patformer/platform.hpp
2025-09-24 14:23:11 +00:00

14 lines
357 B
C++

#pragma once
#include <SFML/Graphics.hpp>
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; //щоб перевірити зіткнення
};