Game: {
    attachTo: ((element) => void);
    canvas: HTMLCanvasElement;
    disableContextMenu: (() => void);
    setBackgroundColor: ((colour) => void);
    setRender: ((callback) => void);
    setSize: ((width, height) => void);
    setSmoothing: ((to) => void);
    setUpdate: ((callback) => void);
    start: (() => void);
}

Type declaration

  • attachTo: ((element) => void)
      • (element): void
      • Parameters

        • element: Element

        Returns void

  • canvas: HTMLCanvasElement
  • disableContextMenu: (() => void)
      • (): void
      • Returns void

  • setBackgroundColor: ((colour) => void)
      • (colour): void
      • Parameters

        • colour: string

        Returns void

  • setRender: ((callback) => void)
      • (callback): void
      • Parameters

        • callback: ((gfx) => void)
            • (gfx): void
            • Parameters

              Returns void

        Returns void

  • setSize: ((width, height) => void)
      • (width, height): void
      • Parameters

        • width: number
        • height: number

        Returns void

  • setSmoothing: ((to) => void)
      • (to): void
      • Parameters

        • to: boolean

        Returns void

  • setUpdate: ((callback) => void)
      • (callback): void
      • Parameters

        • callback: ((dt, input) => void)
            • (dt, input): void
            • Parameters

              Returns void

        Returns void

  • start: (() => void)
      • (): void
      • Returns void