pixi-howler-sprite-loader
v1.0.1
Published
Pixi Howler sprite loader and parser
Downloads
1
Readme
pixi-howler-sprite-loader
Installation
npm i pixi-howler-sprite-loader
Usage
import { PixiHowlerSpriteLoader } from "pixi-howler-sprite-loader";
import { extensions, Assets } from "pixi.js";
extensions.add(PixiHowlerSpriteLoader);
async function load() {
const myAudio:Howl = await Assets.load('Game/sounds/game-sprite.json');
// or get the sound if you already loaded it
// const myAudio:Howl = Assets.get('Game/sounds/game-sprite.json');
myAudio.play("sound-1")
}
load();