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.

25 lines (24 loc) 607 B
import { ExcaliburGraphicsContext } from '../Context/ExcaliburGraphicsContext'; import { Vector } from '../../Math/vector'; /** * Internal debug text helper */ export declare class DebugText { constructor(); /** * base64 font */ readonly fontSheet: string; size: number; private _imageSource; private _spriteSheet; private _spriteFont; load(): Promise<void>; /** * Writes debug text using the built in sprint font * @param ctx * @param text * @param pos */ write(ctx: ExcaliburGraphicsContext, text: string, pos: Vector): void; }