Package com.dicycat.kroy.scenes
Class HUD
- java.lang.Object
-
- com.dicycat.kroy.scenes.HUD
-
public class HUD extends java.lang.Object
HUD window- Author:
- Michele Imbriani
-
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.scenes.scene2d.Stage
stage
-
Method Summary
Modifier and Type Method Description java.lang.Integer
getFinalScore()
java.lang.Integer
getScore()
void
setScore(java.lang.Integer x)
void
update(float dt)
Using delta time allows to operate with the real-world time (seconds) rather than the in-game time (which is computed using frames)void
updateScore(java.lang.Integer x)
-
-
-
Constructor Detail
-
HUD
public HUD(com.badlogic.gdx.graphics.g2d.SpriteBatch sb, Kroy game)
- Parameters:
sb
- SpriteBatchgame
- Kroy instance
-
-
Method Detail
-
update
public void update(float dt)
Using delta time allows to operate with the real-world time (seconds) rather than the in-game time (which is computed using frames)- Parameters:
dt
- Delta Time
-
getFinalScore
public java.lang.Integer getFinalScore()
-
setScore
public void setScore(java.lang.Integer x)
-
getScore
public java.lang.Integer getScore()
-
updateScore
public void updateScore(java.lang.Integer x)
- Parameters:
x
- Points to be added to the score
-
-