Upload files to "/"
This commit is contained in:
parent
c898dd8996
commit
9fe18da843
5 changed files with 84 additions and 26 deletions
15
platform.cpp
Normal file
15
platform.cpp
Normal 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();}
|
||||
Loading…
Add table
Add a link
Reference in a new issue