• Create a text object.

    0, 0 is located at the top, left hand side.

    Parameters

    • x: number

      x position of the text

    • y: number

      y position of the text

    • text: string

      text to be shown

    • config: ObjectConfig = {}

      text configuration to be used

    Returns GameObject

    text game object