Package de.tum.cit.fop.maze.UI
Class PausedOverlay
java.lang.Object
de.tum.cit.fop.maze.UI.PausedOverlay
Overlay screen displayed when the game is paused.
Allows the player to resume the game or exit to the main menu.
-
Constructor Summary
ConstructorsConstructorDescriptionPausedOverlay(MazeRunnerGame game, com.badlogic.gdx.scenes.scene2d.Stage stage, GameScreen gameScreen) Constructs a PausedOverlay. -
Method Summary
Modifier and TypeMethodDescriptionvoidHides the paused menu overlay.voidShows the paused menu overlay.
-
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.
-