Tim,
Your are close.
When I said to switch the width and height I was actually talking about in the config.lua file.
config.lua normally looks something like this (for iPad):
[lua] application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,
},
}
[/lua]
so in your case you’d use this:
[lua] application =
{
content =
{
width = 1024,
height = 768,
scale = “letterbox”,
},
}
[/lua]
and then display.contentWidth will return 1024, and display.contentHeight will return 768. I think doing it the way you just wrote could possibly come up with other issues later on.
As far as the actual dimensions you use for your app. I don’t know enough about the android tablets on the market to even guess. If you want to release it for iPad at all, then I would suggest using that, since they are the leading tablet out there, and everyone else is going to be following their lead or trying to differentiate themselves from it. Otherwise, just do some research on what people are using and what different sizes are out there. The biggest thing to pay attention to isn’t how big or small they are, but how skinny or wide they are since the scaling will be done for you anyway.
Also, if you are going to do rotations, this is pretty complicated, but you might want to check out this post
http://developer.anscamobile.com/forum/2011/05/06/iphone-portraits-ipad-landscapes
Good Luck,
-Matt
W2MD [import]uid: 10211 topic_id: 13529 reply_id: 51394[/import]