public class GameOverHud extends Hud
Modifier and Type | Field and Description |
---|---|
static float |
DISPLAY_TIME
Stores how long the GameOverHud is displayed for before being brought back to the main menu.
|
static com.badlogic.gdx.graphics.Color |
OVERLAY_COLOR
Holds the color which overlays the screen below the GameOverHud.
|
Constructor and Description |
---|
GameOverHud(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.jonathan.survivor.World world)
Accepts the stage where 2d widgets will be drawn and placed, and the world, which will receive information about
button presses.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float deltaTime)
Draws the Hud to the screen using the stage.
|
void |
reset(float guiWidth,
float guiHeight)
Called when the stage must be reset to draw the widgets contained in this class.
|
addHudListener
public static final com.badlogic.gdx.graphics.Color OVERLAY_COLOR
public static final float DISPLAY_TIME
public GameOverHud(com.badlogic.gdx.scenes.scene2d.Stage stage, com.jonathan.survivor.World world)
public void draw(float deltaTime)
Hud