Upload files to "/"
This commit is contained in:
parent
9fe18da843
commit
43739633b8
1 changed files with 14 additions and 0 deletions
14
platform.hpp
Normal file
14
platform.hpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#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; //щоб перевірити зіткнення
|
||||||
|
};
|
Loading…
Reference in a new issue