UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

15 lines (14 loc) 664 B
import { ExcaliburGraphicsContext } from './Context/ExcaliburGraphicsContext'; import { DebugConfig } from '../Debug'; import { Component } from '../EntityComponentSystem/Component'; /** * Provide arbitrary drawing for the purposes of debugging your game * * Will only show when the Engine is set to debug mode {@apilink Engine.showDebug} or {@apilink Engine.toggleDebug} * */ export declare class DebugGraphicsComponent extends Component { draw: (ctx: ExcaliburGraphicsContext, debugFlags: DebugConfig) => void; useTransform: boolean; constructor(draw: (ctx: ExcaliburGraphicsContext, debugFlags: DebugConfig) => void, useTransform?: boolean); }