Scaling on galaxy tab

Hi,

I am trying out my game with a different setting now as i have seen some sample projects using 320 * 480 and providing @2x graphics and some using 1024*768

Here is the config.lua settings for my game which is about catching objects falling form the sky in a basket below :slight_smile:

width = 768,
height = 1024,
fps=30,
scale = “letterbox”,

All the graphics by default are drawn for 1024*768 resolution.

works consistently on iphone, iphone4 and ipad on the simulator, but the moment i take it on the galaxy tab the background does not draw properly leaving black bands on both sides in portrait mode.

When i set to zoomEven, the background draws properly, but some activity happens outside of the screen even though i initiate objects from the sky using x as a random integer between 0 and display.viewableContentWidth.

I have not created any @2x graphics?

I have also seen games literally hard coding positional values for objects , assuming corona will provide the translation between various screens in terms of positioning.

any sample game which uses 1024*768 and appears correctly on galaxy tab?

thanks
[import]uid: 55009 topic_id: 11014 reply_id: 311014[/import]

The resolution you define in your config file is what Corona uses for how your app is displayed (as well as how physics calculations are determined). The iPads 1024 x 768 resolution is a full screen aspect ratio which is 4:3 so it looks almost square. The Galaxy Tab has a widescreen aspect ratio which is 16:9 and is much more rectangular. What Corona is doing when you choose scale = “letterbox”, is displaying the content in it’s original aspect ratio so it won’t fill up the whole 16:9 screen (which is why there are black bars). A great article with a section on how to set up your app to display properly on just about any device can be found here:
http://www.base2solutions.com/walkabout/Corona%20Tips.html
Check out the section “Dynamic Image Resolution”. [import]uid: 27965 topic_id: 11014 reply_id: 40127[/import]