Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Game

Index

Constructors

constructor

Properties

Private canvas

canvas: HTMLCanvasElement

Private lagTime

lagTime: number = 0

Private lastTickTime

lastTickTime: number = ...

Private mainLoop

mainLoop: any

Private stats

stats: Stats

Private Readonly timePerTick

timePerTick: number = ...

Static Private _height

_height: number = 720

Static Private _ticks

_ticks: number = 0

Static Private _tps

_tps: number = 60

Static Private _width

_width: number = 1280

Static ctx

ctx: CanvasRenderingContext2D

Accessors

Static elapsedTicks

  • get elapsedTicks(): number

Static gameRect

  • get gameRect(): Rect

Static height

  • get height(): number

Static tps

  • get tps(): number

Static width

  • get width(): number

Methods

Private draw

  • draw(): void

Private handleResize

  • handleResize(): void

Private loadAssets

  • loadAssets(): void

run

  • run(): void

Private update

  • update(): void

Generated using TypeDoc