From: lukel495 Date: Tue, 14 Nov 2023 12:51:20 +0000 (+0100) Subject: removed scale factor on players X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=1f185eb7927b70221192056169fdb65894347773;p=TDDC76_proj.git removed scale factor on players --- diff --git a/src/Helper.cc b/src/Helper.cc index df7a5cf..a5b2cb7 100644 --- a/src/Helper.cc +++ b/src/Helper.cc @@ -11,7 +11,7 @@ Helper::Helper() : stop_pos{500} texture.loadFromFile("assets/ysex.png"); sprite.setTexture(texture); - sprite.setScale(S_SCALE_KOEFF, S_SCALE_KOEFF); + sprite.setScale(1, 1); sf::FloatRect gb {sprite.getGlobalBounds()}; sprite.setOrigin(gb.width / 2, gb.height / 2); position = {1000, 50}; diff --git a/src/Player.cc b/src/Player.cc index 42d54f7..8f9a479 100644 --- a/src/Player.cc +++ b/src/Player.cc @@ -12,7 +12,7 @@ Player::Player() : collected{0}, max_speed{10} texture.loadFromFile("assets/4V_figur.png"); sprite.setTexture(texture); - sprite.setScale(S_SCALE_KOEFF, S_SCALE_KOEFF); + sprite.setScale(1, 1); sf::FloatRect gb {sprite.getGlobalBounds()}; sprite.setOrigin(gb.width / 2, gb.height / 2); sprite.setPosition(position);