Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextComponent

Objective : Render text by input coordinate x and y. Store and manipulate with text data.

Hierarchy

  • TextComponent

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TextComponent(textArg: string | string[], options?: any): TextComponent

Properties

assets

assets: Resources | null = null

Private bufferText

bufferText: string[] = []

Private options

options: any

Private text

text: string = "Player"

Methods

drawComponent

  • drawComponent(c: CanvasRenderingContext2D, part: any): void

Generated using TypeDoc