iPhone 4S and 5 Universal Binary resize workaround

dr2391dr2391 PRO Posts: 78
edited February 2013 in Working with GS (Mac)
First of all, this is amazing so if anyone has not watched the UB tutorial on GSHelper.com (thank you guys) then this will be really nice to know

Anyways, it works really nice but I only have one small problem on the iPhone 5, it stretches my background a little to much so I want to increase the height of my background on the i5 to counter this. While I could just use trial and error, I'd rather understand what is going on.

My base platform is iPad

4S (landscape)
When - game.screen.size.width = 480
Change - scene.camera.size.height to 862
Change - scene.camera.origin.y to -46

5 (landscape)
When - game.screen.size.width = 568
Change - scene.camera.size.height to 1024 (so it increases the camera height from 768 for the change in width?)
Change - scene.camera.origin.y to -128

Also we should start a thread with the resize numbers for all(or most) phones/tablets? Maybe this could be the start of it? 1 game for all devices without letterbox or overscan would be nice.
Sign In or Register to comment.