@tbminiapp/pixi-loaders
v6.2.1-beta.9
Published
Load assets and resources
Downloads
7
Readme
@tbminiapp/pixi-loaders
Installation
npm install @tbminiapp/pixi-loaders
Usage
Using the loader directly:
import { Loader } from '@tbminiapp/pixi-loaders';
const loader = new Loader();
loader.add('path/to/file.jpg');
loader.load(() => {});
Using the loader as an Application plugin:
import { AppLoaderPlugin } from '@tbminiapp/pixi-loaders';
import { Application } from '@tbminiapp/pixi-app';
Application.registerPlugin(AppLoaderPlugin);
const app = new Application();
app.loader.add('path/to/file.jpg');
app.loader.load(() => {});