Sorry, config.lua question again. iOS flavored...

Hi,

Can I use 640x960 (doubled 320x480) size as starting resolution for iOS apps?
My game is in portrait orientation and because bg scrolls up, the width is only important…

Here is my (quite standard) config.lua file:

local aspectRatio = display.pixelHeight / display.pixelWidth
application = {
    content = {
        width = aspectRatio > 1.5 and 640 or math.ceil( 960 / aspectRatio ),
        height = aspectRatio < 1.5 and 960 or math.ceil( 640 * aspectRatio ),
        scale = “letterBox”,
        fps = 60,
        
        imageSuffix = {
            ["@2x"] = 1.5,
        },
    },
}

In this example @2x is the same as @4x if the starting resolution is 320x480. Right?
But I don’t know which suffix to use for @3x sized images (from 320x480 setup) in 640x960 situation.

Am i asking nonsense question?

Any help?
 

In this case to get your @2x assets to load, the device would need to be 960 px or wider (while viewing the device vertically). So retina iPads and the iPhone 6 plus family would be the only devices to get your @2x assets. No device would use @4x assets (you didn’t include them in Config.lua).

Since I don’t know if your normal graphics are designed for 320x480 or 640x960, it’s going to be hard to advise further. 

Rob

Thank you for your answer Rob,

My normal graphics are designed for 640x960 screen.

I really don’t want to support 320x480 phones because, apart from the small resolution, their processing power is not that good for desired performances (smooth, full-screen scroll, 60fps…). iPhone4 and above plays just fine…

The cause of my confusion is that I don’t know if iOS (Corona?) looks for suffixes (@2x, @3x, @4x…) automatically or these suffixes are  there for config.lua script which actually switches graphics and dimensions based on calculation in content table…

Thanks

If it’s not in your config.lua we won’t look for it.

In this case to get your @2x assets to load, the device would need to be 960 px or wider (while viewing the device vertically). So retina iPads and the iPhone 6 plus family would be the only devices to get your @2x assets. No device would use @4x assets (you didn’t include them in Config.lua).

Since I don’t know if your normal graphics are designed for 320x480 or 640x960, it’s going to be hard to advise further. 

Rob

Thank you for your answer Rob,

My normal graphics are designed for 640x960 screen.

I really don’t want to support 320x480 phones because, apart from the small resolution, their processing power is not that good for desired performances (smooth, full-screen scroll, 60fps…). iPhone4 and above plays just fine…

The cause of my confusion is that I don’t know if iOS (Corona?) looks for suffixes (@2x, @3x, @4x…) automatically or these suffixes are  there for config.lua script which actually switches graphics and dimensions based on calculation in content table…

Thanks

If it’s not in your config.lua we won’t look for it.