Package de.tum.cit.fop.maze.UI
Class GameLostScreen
java.lang.Object
de.tum.cit.fop.maze.UI.GameLostScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
Screen displayed when the player loses the game.
Provides an option to exit to the main menu.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of the screen and its resources.voidhide()Called when this screen is no longer the current screen for the game.voidpause()Called when the application is paused.voidrender(float delta) Renders the screen.voidresize(int width, int height) Called when the screen size changes.voidresume()Called when the application is resumed from a paused state.voidshow()Called when this screen becomes the current screen for the game.
-
Constructor Details
-
GameLostScreen
Constructs a GameLostScreen.- Parameters:
game- The main game instance.
-
-
Method Details
-
render
public void render(float delta) Renders the screen.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time in seconds since the last render.
-
resize
public void resize(int width, int height) Called when the screen size changes.- Specified by:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- The new width.height- The new height.
-
dispose
public void dispose()Disposes of the screen and its resources.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
show
public void show()Called when this screen becomes the current screen for the game.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
pause
public void pause()Called when the application is paused.- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()Called when the application is resumed from a paused state.- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()Called when this screen is no longer the current screen for the game.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-