Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pixi-tps-loader

rocket-ua14MIT1.0.5

PIXI TexturePacker multiply sprite sheets loader

spriteSheets, sprite sheets, sprite sheet, multipack, TexturePacker, pixi.js, pixijs, pixi

readme

PIXI-TPS-LOADER

Automatically downloads all the associated sprite sheets created with the TexturePacker multipack, just specify any one of the created sprite lists to load.


How to use

To load sprite sheets, just connect the library to the project as follows:

import * as PIXI from "pixi.js";
import "pixi-tps-loader";

Load any of the sprite sheets with the PIXI Loader. All related sprite sheets will be load automatically.

For example

You have a lot of related sprite sheets

game-1.json
game-2.json
game-3.json
...
game-N.json

Download one of them

PIXI.Loader.shared.add("./assets/game-1.json");
PIXI.Loader.shared.load()

All other related linked sprite lists will be loaded automatically.


Contacts

Telegram @rocket_ua