Class: Message

Message(text, center, w, h, txtheight, color) → {Message}

new Message(text, center, w, h, txtheight, color) → {Message}

Constructor for the message class.
Parameters:
Name Type Description
text ObjectArray
center 2DArray
w int
h int
txtheight type
color RGBAColorArray
Source:
Returns:
Type
Message

Methods

animateText() → {void}

Animates the words inside the text.
Source:
Returns:
Type
void

draw(camera) → {void}

Draws the text message.
Parameters:
Name Type Description
camera CameraObject
Source:
Returns:
Type
void

goNext() → {Boolean}

Moves onto the next line.
Source:
Returns:
Returns true if there are still lines to display else false.
Type
Boolean