Skip to content

rocket-ua/pixi-tps-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PIXI TexturePacker multiply sprite sheets loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published