Kiwi.HUD.Widget.BasicScore Class
A subclass of textfield that is primarily used to keep track of a score. The score can be accessed via the counter component.
Constructor
Kiwi.HUD.Widget.BasicScore
(
Kiwi.HUD.Widget.BasicScore
-
game -
x -
y -
[initial=0]
Parameters:
-
gameKiwi.GameThe game that this BasicScore belongs to.
-
xNumberThe cooridnates of the game on the x-axis.
-
yNumberThe cooridnates of the game on the y-axis.
-
[initial=0]Number optionalThe initial score to start off at.
Returns:
Methods
_updateText
()
private
Updates the text inside the textfield.
objType
()
String
public
Returns the type of object that this is.
Returns:
String:
"BasicScoreWidget"
