Size of default image when using letterbox

Seem to be going round in circles with this.

I have created default images of:

320 x 480
640 x 960
1024 x 768

In both portrait and landscape orientations but none are filling the screen on an ipad.

My config.lua file is as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
application =
{
        content =
        {
                width = 320,
                height = 480,
                scale = "letterBox",
                xAlign = "left",
                yAlign = "top",
                fps = 60,
 
                imageSuffix = 
                {
                        ["@2x"] = 2,
                },
        },
} 

Try scale = "zoomEven" to see if that helps.

Thanks Weberkeith that has certainly sorted it but strange in their blogs on best practice they seem to favour letterbox more which seems to have this specific issue.

Nonetheless seems to have sorted my issue out

Hey, @mygamingproject, I use letterbox without any issue. The trick is, naming each file as follows (if you've set your config.lua to 320x480 and include the imageSuffix for "@2x"):

Default.png -- 320-480
Default@2x.png -- 640 x 960
Default-Portrait.png -- 768 x 1024

I hope this helps.

Naomi

This is why I find it odd @Naomi because I have done that or at least I thought I had :)

Got it sorted now but useful reference nonetheless.

Thanks again for taking the time to post

J

Ah, of course, your config.lua specifies what I noted (I was rushing through the posts, and didn't really read what you wrote carefully -- sorry about that.) Only difference between yours and mine is that, I set xAlign and yAlign are set to center (which is the default setting if they are not specifically set to something else.) I wonder if that makes the difference...?

Anyhow, I'm glad to hear you've sorted things out.

Naomi

views:1726 update:2012/2/10 9:26:24
corona forums © 2003-2011