Package com.screens
Class MainMenuScreen
- java.lang.Object
-
- com.screens.MainMenuScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class MainMenuScreen extends java.lang.Object implements com.badlogic.gdx.ScreenDisplays the main menu screen with selection buttons.- Since:
- 23/11/2019
-
-
Constructor Summary
Constructors Constructor Description MainMenuScreen(Kroy game)The constructor for the main menu screen.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()com.badlogic.gdx.ScreengetThis()Used to pass the main menu screen into the controls screenvoidhide()voidpause()voidrender(float delta)Render function to display all elements in the main menu.voidresize(int width, int height)voidresume()voidshow()Create the button stage.
-
-
-
Constructor Detail
-
MainMenuScreen
public MainMenuScreen(Kroy game)
The constructor for the main menu screen. All game logic for the main menu screen is contained.- Parameters:
game- The game object.
-
-
Method Detail
-
render
public void render(float delta)
Render function to display all elements in the main menu.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The delta time of the game, updated every second rather than frame.
-
resize
public void resize(int width, int height)- Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
show
public void show()
Create the button stage.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()
- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
getThis
public com.badlogic.gdx.Screen getThis()
Used to pass the main menu screen into the controls screen- Returns:
- main menu screen
-
-