// 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");
void GameOver_menu::render(sf::RenderWindow& window) const
{
- /*window.draw(sprite);*/
+ window.draw(sprite);
window.draw(mouse_l);
window.draw(mouse_r);