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.
14 lines (13 loc) • 419 B
TypeScript
import { Raster, RasterOptions } from './Raster';
export interface RectangleOptions {
width: number;
height: number;
}
/**
* A Rectangle {@apilink Graphic} for drawing rectangles to the {@apilink ExcaliburGraphicsContext}
*/
export declare class Rectangle extends Raster {
constructor(options: RasterOptions & RectangleOptions);
clone(): Rectangle;
execute(ctx: CanvasRenderingContext2D): void;
}