From 1f185eb7927b70221192056169fdb65894347773 Mon Sep 17 00:00:00 2001 From: lukel495 Date: Tue, 14 Nov 2023 13:51:20 +0100 Subject: [PATCH] removed scale factor on players --- src/Helper.cc | 2 +- src/Player.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2