Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
TypeScript
123456789101112131415161718192021import type { ExcaliburGraphicsContext } from './context/excalibur-graphics-context';import type { DebugConfig } from '../debug';import { Component } from '../entity-component-system/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 class DebugGraphicsComponent extends Component { // @ts-ignore private static _NAME = 'DebugGraphicsComponent'; constructor( public draw: (ctx: ExcaliburGraphicsContext, debugFlags: DebugConfig) => void, public useTransform = true ) { super(); }}