API Docs for: 1.4.0
Show:

Kiwi.HUD.Widget.BasicScore Class

Extends Kiwi.HUD.TextField
Module: Widget
Parent Module: HUD

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

(
  • game
  • x
  • y
  • [initial=0]
)
Kiwi.HUD.Widget.BasicScore

Parameters:

  • game Kiwi.Game

    The game that this BasicScore belongs to.

  • x Number

    The cooridnates of the game on the x-axis.

  • y Number

    The cooridnates of the game on the y-axis.

  • [initial=0] Number optional

    The initial score to start off at.

Item Index

Properties

Methods

_updateText

() private

Updates the text inside the textfield.

objType

() String public

Returns the type of object that this is.

Returns:

String:

"BasicScoreWidget"

Properties

counter

Kiwi.HUD.HUDComponents.Counter public

Holds a reference to the counter component.