changed game over menu background - alma, lukas, malin
authormalak585 <malak585@su10-107.ad.liu.se>
Wed, 29 Nov 2023 12:20:03 +0000 (13:20 +0100)
committermalak585 <malak585@su10-107.ad.liu.se>
Wed, 29 Nov 2023 12:20:03 +0000 (13:20 +0100)
assets/highscore.csv
src/Menus.cc

index 5d2ef842adfd5db7f2ca3c84df9b02a1852584ea..7e7754f2456a6754297f0743ff2fe5b5d36f5702 100644 (file)
@@ -1,5 +1,5 @@
+Gorilla,6
 Gorilla,4
 Gorilla,3
 Stina,2
 Gorilla,2
-Gorilla,2
index 1e9ad4c29319e5b3d058d1e87655aa247254d81e..dff5ae569efd8b1d09fb978b9d924306f6583b73 100644 (file)
@@ -498,18 +498,16 @@ void Scoreboard_menu::handle_input(sf::Event& event)
 
 
 // GameOver menu --------------------------------------------
-GameOver_menu::GameOver_menu() : /*texture{},*/ texture2{}, /*sprite{},*/ mouse_l{}, mouse_r{}, startmenutext{},
+GameOver_menu::GameOver_menu() : texture{}, texture2{}, sprite{}, mouse_l{}, mouse_r{}, startmenutext{},
                                  quittext{},  font{}, exit_game{false}, menu{false}, menu_index{1}
 {
-    // Add background later
-    /*
-    texture.loadFromFile("assets/Pause_bild.png");
+    texture.loadFromFile("assets/game_over.png");
     sprite.setTexture(texture);;
 
     sprite.setScale(S_SCALE_KOEFF, S_SCALE_KOEFF);
     sf::FloatRect gb {sprite.getGlobalBounds()};
     sprite.setPosition(0, 0);
-    */
+   
 
     // mouse
     texture2.loadFromFile("assets/muspekareGul.png");
@@ -569,7 +567,7 @@ void GameOver_menu::update(Context& context)
 
 void GameOver_menu::render(sf::RenderWindow& window) const
 {
-    /*window.draw(sprite);*/
+    window.draw(sprite);
     window.draw(mouse_l);
     window.draw(mouse_r);