Jump to content

SpriteSheetLoader vs AtlasLoader vs JsonLoader


Recommended Posts

  • 2 months later...

I don't know if this is still of interest to you, but I had to load a Texturepacker spritesheet with PIXI.js recently and tried the AtlasLoader first without luck.

Then I discovered the SpritesheetLoader. This worked almost perfectly with TexturePacker's JSON export. 

One thing you have to turn off in TexturePacker's settings is "Allow rotation", this will not work with the PIXI loader.


Hope this helps :)

Link to comment
Share on other sites

I only really use jsonloader and assetloader but ill try to give a bit of info:


json loader loads json files. an example use for this could be to store level data in a json file, then to load it and a construct a level based on it.

spritesheetloader loads a png sprite sheet with an accompanying json file. Its use is so that all your artwork can be stored in 1 single png instead of lots of png files. Use a tool such as texturepacker to do this.

assetloader does the same as the above except I believe the differences are it also takes in single images and bitmap fonts.

atlas loader does the same as the spritesheetloader but it loads atlas files instead. (could be wrong on this one, I've only ever used it for loading spine animations. In my case it does the same as the above.)


This is all quite vague if you need a deeper explanation e.g. what is a json/spritesheet then feel free to ask.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...