Upload files to "/"

This commit is contained in:
Wolf 2025-09-24 14:22:47 +00:00
parent c898dd8996
commit 9fe18da843
5 changed files with 84 additions and 26 deletions

15
platform.cpp Normal file
View file

@ -0,0 +1,15 @@
#include "platform.hpp"
Platform::Platform(float x , float y, float width, float height)
:shape(sf::Vector2f(width, height))
{
shape.setPosition(x ,y);
shape.setFillColor(sf::Color::Blue);
}
void Platform::draw(sf::RenderWindow& window){
window.draw(shape);
}
sf::FloatRect Platform::getBounds() const {
return shape.getGlobalBounds();}