Class PausedOverlay

java.lang.Object
de.tum.cit.fop.maze.UI.PausedOverlay

public class PausedOverlay extends Object
Overlay screen displayed when the game is paused. Allows the player to resume the game or exit to the main menu.
  • Constructor Details

    • PausedOverlay

      public PausedOverlay(MazeRunnerGame game, com.badlogic.gdx.scenes.scene2d.Stage stage, GameScreen gameScreen)
      Constructs a PausedOverlay.
      Parameters:
      game - The main game instance.
      stage - The stage to add the overlay to.
      gameScreen - The game screen instance.
  • Method Details

    • showPausedMenu

      public void showPausedMenu()
      Shows the paused menu overlay. Pauses the game logic and switches music.
    • hidePausedMenu

      public void hidePausedMenu()
      Hides the paused menu overlay. Resumes the game logic and background music.