I set my spriteKit game mode to be:
scene.scaleMode = .aspectFill
And I set my background image.
sky = SKSpriteNode(imageNamed: "Sky")
sky.position = CGPoint(x: 0, y: 0)
sky.size.width = self.size.width
sky.size.height = self.size.height
sky.anchorPoint = CGPoint(x: 0.5, y: 0.5)
sky.zPosition = 1
self.addChild(sky)
And the image size is 2732x2048. It looks terrible on 4.7 inch iPhone.
The whole thing is completed stretched.
Is there a way, to crop the image but not stretching it to fit it on iPhone (Same aspect radio for image).
I tried other scale modes, they don't work.
Can somebody tell me what's the right action to take now?
What if I provide iPhone artwork? How do I differentiate from code, like to specify which artwork iPhone should use, and which artwork iPad should use.