14 lines
357 B
C++
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; //щоб перевірити зіткнення
|
|
};
|