pixi-packer-parser
v2.0.0
Published
A parsing middleware for https://github.com/englercj/resource-loader (used by PIXI.js) and https://github.com/gamevy/pixi-packer
Downloads
2
Readme
pixi-packer-parser
The manifest files created by pixi-packer (https://github.com/Gamevy/pixi-packer) are not natively supported by pixi. You need to add this module to your asset loader. At the moment only PIXI >=3.0.0 is supported.
var pixiPackerParser = require("pixi-packer-parser");
var PIXI = require("pixi.js");
var loader = new PIXI.loaders.Loader();
loader.after(pixiPackerParser(PIXI));
loader.add("path/to/my/manifest_DE_initial.json");
loader.on("progress", function (p) => { console.log("progress", p); });
loader.load(function () => { console.log("done"); });