Reputation: 9
I develop Sprite kit game. I want to use pixel art in my project, and I am looking for a best way to use pixel images in my game. There is a complicated background image in this project Should I draw differebt backgrounds for any iPhone screen sizes. Or there is a way to draw only three background images(1x, 2x, 3x) like in non pixel art images. Thanks
Upvotes: 0
Views: 156
Reputation: 4516
Use a Texture Atlas for all your images, including backgrounds. The easiest way to do that is within your XCAssets catalogue in XCode, as described in the linked documentation.
This will allow you to define 1x, 2x and 3x versions of your images. Whether doing that is strictly necessary or not depends on how you are going to scale your scene on different devices. See this discussion for why you may want to stick to just a high resolution image in the 1x slot.
Upvotes: 1