This commit is contained in:
2024-12-19 16:01:21 +01:00
parent 36984b859f
commit 76203a8b29
14 changed files with 58 additions and 68 deletions

View File

@@ -1,11 +1,11 @@
#include "../headers/ObjectItem.hpp"
ObjectItem::ObjectItem(float x, float y, sf::Texture &texture) {
Position position_;
position_.x = x;
position_.y = y;
Position position_ = {0,0};
position_.x = static_cast<int>(x);
position_.y = static_cast<int>(y);
position = position_;
this->texture = texture;
this->texture_ = texture;
}
bool ObjectItem::getStatus() {