public class HomeScreen
extends java.lang.Object
implements com.badlogic.gdx.Screen
Constructor and Description |
---|
HomeScreen(Thyme game)
Constructs the HomeScreen.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when this screen should release all resources.
|
void |
hide()
Called when this screen is no longer the current screen for a
Game . |
void |
pause() |
void |
render(float delta)
Called when the screen should render itself.
|
void |
resize(int width,
int height) |
void |
resume() |
void |
show()
Called when this screen becomes the current screen for a
Game . |
public HomeScreen(Thyme game)
game
- The game that is creating this classpublic void show()
Game
.
Creates the various UI components of the home screen.
show
in interface com.badlogic.gdx.Screen
public void render(float delta)
render
in interface com.badlogic.gdx.Screen
delta
- The time in seconds since the last render.public void resize(int width, int height)
resize
in interface com.badlogic.gdx.Screen
width
- height
- ApplicationListener.resize(int, int)
public void pause()
pause
in interface com.badlogic.gdx.Screen
ApplicationListener.pause()
public void resume()
resume
in interface com.badlogic.gdx.Screen
ApplicationListener.resume()
public void hide()
Game
.hide
in interface com.badlogic.gdx.Screen
public void dispose()
dispose
in interface com.badlogic.gdx.Screen