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.
472 B · 20 lines
TypeScript
123456789101112131415161718192021/** * 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;}