I read that when I add images into the xcassets file, if they are grouped SpriteKit will combine them into atlas structures.
Currently I'm creating atlas folders with internal folders on my Mac, then I drag and drop this folder into my project's folder structure, then I'm dragging that folder from the projects folder structure into the xcassets file.
Break down of atlas folder:
example.atlas (folder)
-> ex_0 (folder)
--> ex_0.png
--> [email protected]
--> [email protected]
-> ex_1 (folder)
... and so on...
Is this correct? Should I create the subfolders, or should all images be in the atlas folder? Do I need to put the atlas into the xcassets file?
Lastly, say that these images are tiles, and I will have multiple different tiles, say example2,atlas, example3.atlas, etc. If I plan to use all these tiles at the same time, should I combine them into 1 big atlas folder?
thanks for any help, I understand that there are multiple ways to do things. I guess I'm looking for the most efficient way to increase performance in my apps. The answer may depend on certain things. So if you could explain the far left and right's of this situation, I can use common sense to figure out what to do when my situation is somewhere in the middle.
You don't need to create extra folders. Just add the regular size image, and then if you click on it, you will notice that on the right there is a way to add the 2@ and 3@ versions.
For tiles you can create a tile set, and in this case you don't need to make any effort combining them into an unique image, because Xcode does all the job for you. It's already optimized.