resolution question

Hi everybody,

I am making a platform videogame and i have this config.

[lua]

– config.lua

application =

{

    content =

    {

            width = 320,

            height = 480,

            scale = “zoomStretch”,

            

            imageSuffix =

            {

                ["@2x"] = 1.5,

                ["@4x"] = 4,

            },

    },

}

[/lua]

My images are like this:

background:        320x480

background@2x: 640x960

  floor  :               480x64

 floor@2x :          960x128

enemy :              156x40

enemy@2x:        312x80 

and so on …

I would like th game works in iphone and ipad (normal and retina).

Would it work as it is now?

will apple reject my application due the new requisites?

is there a better config.lua for what i want?

Thank you in advance and excuse my bad english 

Txarly

Hi Txarly,

I think this tutorial will help:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

And also, you must now include a “tall” launch file for Apple iPhone5 compatibility. If you don’t, Apple will reject it. Please see the “Launch Images” section here:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Regards,

Brent

Thank you Brent, i have seen the tutorial and tested de config.lua with letterbox but is a dissaster.Black bands, art displaced, but with my config.lua with the zoomStretch all works.

-What i want to know if with my config.lua and the size of my art i can release for all platforms including retina and if will work on the devices as in the simulator works fine.

-why is recommended to use letterbox better than zoomstretch?

Hope you can help me and thanks again

Txarly

If you release it as it is now it will work on all devices, fill up every screen and be able to use retina images (if you have @4x images). 

Letterbox is usually a better solution because it doesn’t stretch any of your images, but you have to have your game made so that it can cope with the black band areas and fill them up with gameplay. Zoomstretch is just an easy approach if you don’t mind about your images being stretched or you don’t want to code the black areas etc. Either method is fine, it all depends on the game and art!

thanks to all

Hi Txarly,

I think this tutorial will help:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

And also, you must now include a “tall” launch file for Apple iPhone5 compatibility. If you don’t, Apple will reject it. Please see the “Launch Images” section here:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Regards,

Brent

Thank you Brent, i have seen the tutorial and tested de config.lua with letterbox but is a dissaster.Black bands, art displaced, but with my config.lua with the zoomStretch all works.

-What i want to know if with my config.lua and the size of my art i can release for all platforms including retina and if will work on the devices as in the simulator works fine.

-why is recommended to use letterbox better than zoomstretch?

Hope you can help me and thanks again

Txarly

If you release it as it is now it will work on all devices, fill up every screen and be able to use retina images (if you have @4x images). 

Letterbox is usually a better solution because it doesn’t stretch any of your images, but you have to have your game made so that it can cope with the black band areas and fill them up with gameplay. Zoomstretch is just an easy approach if you don’t mind about your images being stretched or you don’t want to code the black areas etc. Either method is fine, it all depends on the game and art!

thanks to all

I want No black bandeUp and down  in IPhone 5, CAn You help me?

Hi @joanpao,

Yes, you must add the iPhone5 “launch image” named “Default-568h@2x.png” to your core project directory. This image MUST be exactly 640 x 1136 pixels in dimensions. Do not change this to “landscape” even if you’re designing a landscape app… design the image exactly as stated.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Best regards,

Brent

I want No black bandeUp and down  in IPhone 5, CAn You help me?

Hi @joanpao,

Yes, you must add the iPhone5 “launch image” named “Default-568h@2x.png” to your core project directory. This image MUST be exactly 640 x 1136 pixels in dimensions. Do not change this to “landscape” even if you’re designing a landscape app… design the image exactly as stated.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Best regards,

Brent