cleanup in Map.cc file, Alma och Malin
authorAlma Dejus <almde515@student.liu.se>
Mon, 11 Dec 2023 09:07:39 +0000 (10:07 +0100)
committerAlma Dejus <almde515@student.liu.se>
Mon, 11 Dec 2023 09:07:39 +0000 (10:07 +0100)
src/Map.cc

index 9b6b80d82d2b37fb00016f2cd3e3b52a2955ff5d..f503f19ebe126e58e0632c4ceca68c12a038a12c 100644 (file)
@@ -23,7 +23,8 @@ Map::Map(sf::Texture& txtr, sf::Texture& bottle_txtr, json& params) :
     sprite.setPosition(0,0);
 
     bottle_sprite.setScale(0.5, 0.5);
-    bottle_sprite.setPosition(params["collected_pos"][0], params["collected_pos"][1]);
+    bottle_sprite.setPosition(params["collected_pos"][0], 
+                              params["collected_pos"][1]);
 
     if ( !font.loadFromFile ("assets/fonts/Philosopher-Regular.ttf") )
         throw std::invalid_argument ("Unable to load font");
@@ -34,7 +35,8 @@ Map::Map(sf::Texture& txtr, sf::Texture& bottle_txtr, json& params) :
 
     point_text.setPosition (params["points_pos"][0], params["points_pos"][1]);
     point_text.setFillColor(sf::Color::Black);
-    collected_text.setPosition (static_cast<float>(params["collected_pos"][0]) + 40, params["collected_pos"][1]);
+    collected_text.setPosition (static_cast<float>(params["collected_pos"][0])
+                                 + 40, params["collected_pos"][1]);
     collected_text.setFillColor(sf::Color::Black);
     time_text.setPosition (params["time_pos"][0], params["time_pos"][1]);
     time_text.setFillColor(sf::Color::Black);