I’m getting increasingly more and more frustrated with this. My basic problem is that I’m trying to ensure that my game looks ‘correct’ on Android devices AND iPhone/iPad devices.
I’ve tried the ‘magic recipe’ as discussed here…
http://blog.anscamobile.com/2010/11/content-scaling-made-easy/
So far so good. The background image scales to fill the screen on all devices.
HOWEVER…
I want to place a ‘ground’ physics object at the bottom of the screen so do this:
[blockcode]
local borderBottom = display.newRect( 20, display.contentHeight, display.contentWidth, 30 )
[/blockcode]
On ALL devices EXCEPT Droid it’s placed as expected, on Droid it’s placed about 100 pixels too high…
Also placing an object at the top of the screen is correct on ALL devices EXCEPT Droid, where it’s placed about 100 pixels lower!
Any help you have offer would be greatly appreciated as otherwise I shall have to ask for a refund.
A thought : How does one go about getting the ACTUAL screen size so I can place items correctly and don’t say contentHeight or contentviewableHeight as they just return whatever the height setting is in the config.lua, in this case 480. Perhaps it would be nice to have an API call that returns the REAL height and width.
I think there is a bug here, why is the placement incorrect for JUST Droid?
[import]uid: 9371 topic_id: 4187 reply_id: 13480[/import]