Package com.screens
Class HowToPlayScreen
- java.lang.Object
-
- com.screens.HowToPlayScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class HowToPlayScreen extends java.lang.Object implements com.badlogic.gdx.ScreenScreen that appears when the user enters the controls screen. Whilst the game is in the control screen, it is paused, the timer will stop counting down. From this screen, the user can view controls and information about the game objectives
-
-
Constructor Summary
Constructors Constructor Description HowToPlayScreen(Kroy game, com.badlogic.gdx.Screen returnScreen)The constructor for the control screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Called when this screen should release all resources.voidhide()Called when this screen is no longer the current screen for aGame.voidpause()voidrender(float delta)Called when the screen should render itself.voidresize(int width, int height)voidresume()voidshow()Called when this screen becomes the current screen for aGame.
-
-
-
Constructor Detail
-
HowToPlayScreen
public HowToPlayScreen(Kroy game, com.badlogic.gdx.Screen returnScreen)
The constructor for the control screen- Parameters:
game- the game object to change between screensreturnScreen- screen to go back to
-
-
Method Detail
-
show
public void show()
Called when this screen becomes the current screen for aGame.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Called when the screen should render itself.- 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)- Specified by:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- of windowheight- of window- See Also:
ApplicationListener.resize(int, int)
-
pause
public void pause()
- Specified by:
pausein interfacecom.badlogic.gdx.Screen- See Also:
ApplicationListener.pause()
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.Screen- See Also:
ApplicationListener.resume()
-
hide
public void hide()
Called when this screen is no longer the current screen for aGame.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Called when this screen should release all resources.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
-