So I'm developing a game on Xcode using Spritekit, for the iPhone. And it looks all the same and great on all iPhone devices, by using the node.setScale() method. Now I want to make it Universal and runnable on the iPad as well. How do I do this easily? Is there some formula for the scale?
What I already tried was this:
if UIDevice.current.userInterfaceIdiom == .pad {
sscale = frame.size.height / 768
}else{
sscale = frame.size.height / 320
}
And then for every node I make node.setScale(sscale).
This ends up not working because on the iPad Mini it looks different from the iPad Air... i.e node sizes and positions...
Any help?