Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/sample-excalitris. excaliburjs.com/sample-excalitris
Something went wrong. Try again.
1234567891011121314151617181920212223import { ImageSource, Loader } from 'excalibur';
export const Resources = { Blocks: new ImageSource('./images/blocks.png'),} as const;
// instantly starts game once loading has completedclass DevLoader extends Loader { showPlayButton() { return Promise.resolve(); }
draw() {} dispose() {}}
export const loader = new DevLoader();process.env.NODE_ENV === 'development' ? new DevLoader() : new Loader();
for (const res of Object.values(Resources)) { loader.addResource(res);}