Resolution independent: work?

NeverbeNeverbe Member Posts: 117
edited November -1 in Working with GS (Mac)
I'm drawing background using iPhone4 resolution.
Can I build the game for the iPhone4 and for the standard iPhone using resolution independent?

PS: someone could tell me the best setting for the PNG background?

Comments

  • StusAppsStusApps Member, PRO Posts: 1,352
    you can, but there are a couple of things to watch out for.

    If you do your background as 960 x 640 then it will resize automatically for standard iphone screens.

    The problem comes with any graphics that are not a resolution that is divisible by 4. By ticking resolution independence it produces quarter sized graphics (half width by half height). Odd numbered resolutions would result in a half pixel when resized, which is not possible so the resulting image appears blurry. Also sometimes when GS crashes it can result in corrupted half size graphics so do test the game on actual devices (iphone 4 and a standard res device).

    As far as building the game goes it is fine to tick the resolution independence and build it using iphone 4 res graphics. Nothing will be the wrong size on any device but may appear blurry if you don't plan the graphics sizes well.
  • NeverbeNeverbe Member Posts: 117
    I cannot undertand one thing if I won't use the resolution independent and:

    - If I use my backgroung (960x640) and in the "script" I don't use number related with the resolution the game will look good also on the iPhone4?

    - If I use a 960x640 scene how the game will look on the old iPhone and it will work on iPhone4 also if it don't work on the old iPhone?
  • StusAppsStusApps Member, PRO Posts: 1,352
    yeah as I understand it, if you use hi res graphics they will still be hi res on the iphone 4 without resolution independence ticked. The 3GS and below will have to rescale down (stretch) the graphics on the device to display them. The downside of doing this is you are loading hi res graphics into ram on older devices which will eat through the memory. It'll still look right on both devices and should still be hi res on the iphone 4, just not gonna be long before you run out of the 40mb on a 3G.

    If someone has tested this and knows otherwise then please correct me.
Sign In or Register to comment.