Package com.csse3200.game.screens
Class MiniGameMenuScreen
java.lang.Object
com.csse3200.game.screens.MiniGameMenuScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
CLass for the MiniGame Menu Screen. Has an image and button for each minigame
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of stage, skin, textures and batchvoid
hide()
Called when the screen is hiddenvoid
pause()
Called when the screen is pausedvoid
render
(float delta) Renders the background and polls for BACKSPACE key pressvoid
resize
(int width, int height) Called when the screen is resizedvoid
resume()
Called when the screen is resumed after a pausevoid
show()
Sets up the images and buttons.
-
Constructor Details
-
MiniGameMenuScreen
-
-
Method Details
-
show
public void show()Sets up the images and buttons. This is called when the screen is made and resized.- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) Renders the background and polls for BACKSPACE key press- Specified by:
render
in 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 is resized- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Parameters:
width
- width fo the new screenheight
- height of the new screen
-
pause
public void pause()Called when the screen is paused- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()Called when the screen is resumed after a pause- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()Called when the screen is hidden- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()Disposes of stage, skin, textures and batch- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-