Scaling Display Objects Depending On Screen Size

Hi

I’m having difficulty scaling display objects on screen, depending on the screen size.

It’s not about resolution, this is handled nicely by Corona, the problem is with the screen size.

We’ve got a game, where you have to shoot enemies. It’s fine with the bigger ones, but we have those pesky small fast bastards, that were supposed to be difficult to hit.

Well they are difficult on iPhone/iPad, but on my Galaxy S II they are sometimes impossible to hit. That’s mostly because it has a higher pixel per inch value, and this makes a lot of difference!

Is there any way I could get the ppi value in coronalabs?

I don’t want to list all devices in my game with screen sizes and calculate it. That makes no sense.

It also doesn’t make sense to  have a single leaderboard for all of the devices, simply because on some of them it’s much easier to hit something than on others.

And… finally, it doesn’t make sense to have a separate leaderboard for every device, because then you compete against much smaller number of people.

Anyway… is there anyway I could get this information? How do others handle it? Do you?

I’ve found this post which is over a year old:

http://developer.coronalabs.com/forum/2012/01/01/differentiating-between-small-or-large-screen-similar-screen-resolution#comment-87390

where Joshua Quick promised a way to retrieve dpi, unfortunately this still isn’t there.

I’ve found this post which is over a year old:

http://developer.coronalabs.com/forum/2012/01/01/differentiating-between-small-or-large-screen-similar-screen-resolution#comment-87390

where Joshua Quick promised a way to retrieve dpi, unfortunately this still isn’t there.