addText

Creates text (TextObject class) and returns it

Arguments

x - Number, sets the X position of the sprite (top-left corner)

y - Number, sets the Y position of the sprite (top-left corner)

text - String, sets the character the sprite is filled with

Returns

TextObject

Last updated