Go back

Screen Size in Game template iOS9

Forums Rise of Angels Discussions Screen Size in Game template iOS9

This topic contains 0 replies, has 1 voice, and was last updated by  36194715 1 month ago.

  • Author
  • #126991


    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.

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Attention! For proper authorization and operation of the applications, you must allow the use of third-party cookies.