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.

19 lines (18 loc) 494 B
/** * An interface describing loadable resources in Excalibur. Built-in loadable * resources include {@apilink Texture}, {@apilink Sound}, and a generic {@apilink Resource}. */ export interface Loadable<T> { /** * Data associated with a loadable */ data: T; /** * Begins loading the resource and returns a promise to be resolved on completion */ load(): Promise<T>; /** * Returns true if the loadable is loaded */ isLoaded(): boolean; }