Kristiyan

loading multiple atlases

Recommended Posts

Hello everyone!
I want to ask, how can i check what each atlas contains(data) after loading multiple atlases ?

 

  game.load.atlas('atlas', 'mg-game-objects-0.png', 'mg-game-objects-0.json');
  game.load.atlas('atlas2','roullet/roullet.png' ,'roullet/roullet_atlas.json' );

 

Share this post


Link to post
Share on other sites

Do you mean from within your code? You'd have to  extract the filenames that are inside your JSON. Doing that would depend on how the JSON is structured. 

Externally, you can just open your JSON file and look at it and the filenames will match your filenames of the files that went  into the atlas. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.