removed scale factor on players
authorlukel495 <lukel495@su15-111.ad.liu.se>
Tue, 14 Nov 2023 12:51:20 +0000 (13:51 +0100)
committerlukel495 <lukel495@su15-111.ad.liu.se>
Tue, 14 Nov 2023 12:51:20 +0000 (13:51 +0100)
src/Helper.cc
src/Player.cc

index df7a5cfa5d74a5636aa6a61cc3e743d974be3d27..a5b2cb7a460969ce4520495bfe2518fec04b0fef 100644 (file)
@@ -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};
index 42d54f77484b7b744f8bbbdb3a9dff8cf24aaefd..8f9a479f80b2926bca0647cdde33e9c41dba6489 100644 (file)
@@ -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);