I am trying to understand how to make my screen look the same in all iOS devices when building with Game Template. I totally get using constraints when building in Single View Application Template like Gbfunda but it seems game template doesn’t use this.
` let background = SKSpriteNode(imageNamed: “Background”)
background.posByCanvas(0.5, y: 0.5)
background.xScale = 0.38
background.yScale = 0.38
background.zPosition = -1
I have a func posByCanvas that calculates the screen size and scales depending on the device but some things will be cut out. Is there a way that I don’t know about that just handles this? Like when you use constraints and put the image to the borders and you loose nothing.
You must be logged in to reply to this topic.
Attention! For proper authorization and operation of the applications, you must allow the use of third-party cookies.