DrawableText

BGE. DrawableText

Class to draw text

Constructor

new DrawableText(owner, canvasBitmap, textopt, fontopt, argsopt) → {void}

Parameters:
Name Type Attributes Default Description
owner GameEntity
canvasBitmap object
text string <optional>
""
font object <optional>
invalid
args object <optional>
{}
Properties:
Name Type Description
text string

The text to write on the screen

font object

The Font object to use ( get this from the font registry)

alignment string

The Horizontal alignment for the text: "left", "center", "right"

lastTextValue string
tempCanvas object
Source:

Extends

  • Drawable

Methods

draw(additionalRotationopt) → {void}

Parameters:
Name Type Attributes Default Description
additionalRotation float <optional>
0
Source:

getDrawPosition() → {object}

Source: