From 0306c32c9b6f021af52f984b8296a2773b9b7638 Mon Sep 17 00:00:00 2001 From: malak585 Date: Wed, 29 Nov 2023 13:20:03 +0100 Subject: [PATCH] changed game over menu background - alma, lukas, malin --- assets/highscore.csv | 2 +- src/Menus.cc | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/assets/highscore.csv b/assets/highscore.csv index 5d2ef84..7e7754f 100644 --- a/assets/highscore.csv +++ b/assets/highscore.csv @@ -1,5 +1,5 @@ +Gorilla,6 Gorilla,4 Gorilla,3 Stina,2 Gorilla,2 -Gorilla,2 diff --git a/src/Menus.cc b/src/Menus.cc index 1e9ad4c..dff5ae5 100644 --- a/src/Menus.cc +++ b/src/Menus.cc @@ -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); -- 2.30.2