GraphicsEngine-Component

This component will do the following tasks for you:

  • manage a FatRenderer instance
  • manage a LUIManager instance
  • manage the canvas (HTMLCanvasElement)
  • manages touch/mouse input
  • observes keyboard-input (keyDown, keyUp etc.)

You use this to:

  • add graphics objects to the world
  • add UI elements to the GUI
  • configure how your canvas get's scaled (or tell it that you like to do that yourself)

See

  • FatRenderer
  • LUIManager

Hierarchy

Constructors

Properties

_debugZoom: number = 0
_gui: LUILayer
_guiBehind: LUILayer
_height: number = 1
_keyDown: Record<string, boolean> = {}
_overlayCanvasList: OverlayCanvas[] = []
_pixelSize: number
_rootMatrix: AffineMatrix = ...
_width: number = 1
canvas: HTMLCanvasElement
clearColor: Color
clientRect: DOMRect
clientToGameX: number = 1
clientToGameY: number = 1
engineContext: EngineContext
entity: Entity = null
frame: number = 0
idMatrix: AffineMatrix = ...
isMouseDown: boolean = false
lastTouchX: number = 0
lastTouchY: number = 0
pixelSize: number
renderer: FatRenderer
scaleMode: string

Accessors

Methods

Generated using TypeDoc