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

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.

Guest
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.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.