ios - Is self.frame.height for SKScene based on landscape height no matter which way the phone is rotated? -
ios - Is self.frame.height for SKScene based on landscape height no matter which way the phone is rotated? -
i have skscene
. lock phone in portrait game. doing math have infinite scrolling background. going subtract amount of background sits off screen. background 1344 width , width of screen in portrait should 768. when trace self.frame.width
or self.frame.size.width
gives me 1024 , self.frame.height
or self.frame.size.height
gives me 768. in playscene:skscene
. right in saying rotation of phone doesn't matter , width , height calculated if in landscape?
ios objective-c swift
Comments
Post a Comment