Function centerText

  • Draw text centered horizontally on the screen

    Parameters

    • text: string

      The text to draw

    • y: number

      The y coordinate to draw the text at

    • font: GameFont

      The font to use rendering

    • Optional col: string

      The color tint to apply

    Returns void

Generated using TypeDoc