image size prob on some devices

hi,
what does have iphone4/ iPad and Galaxy tab have in common?

because there my app looks good…
not on iPhone, droid, nexus, mytouch.

my sprites flying around, looks good. but my parallax scrolling in the
background makes wired stuff on last mentioned devices.

the background images seems just a quarter or half of the screen.

Are there specific limits for background size on old iPhone, droid …?

thx
chris
[import]uid: 4795 topic_id: 14480 reply_id: 314480[/import]

i was reading now several things about the foo@ image sizes.
but how is it about my config.lua
should i there always better 320x480 or when i like targeting also iPad
640x960 and than use the downscale from corona.

i just guess working from the beginning with 640x960 would keep my whole
calculations internally more accurate. whats your advice in this days if i would
like to target all devices (from iPhone 320x480 to iPad 2 and even the next one with
2048x1024. what should i write in my config.lua ?

my above problem is, that i worked with 640x960
all my background images are 640x960.
on a iphone or mytouch device with 320x480 it scales them down to a quarter it looks!
should it be just the half…i mean just don’t get it :slight_smile:

now on old iPhone device it shoes that large image just half

thanks
chris

[import]uid: 4795 topic_id: 14480 reply_id: 53569[/import]

hi there,
it looks i found it :slight_smile: sorry for writing a long monolog here.

i just disabled that autoscale feature by adding ‘true’ at the end from
display.newImage( “backgrounds/bg_level1.png”, 0, 0, true )

thx
chris

ps.
now one more thing :slight_smile:
memory prob (sim works, real device not… but i will open a feature request for that)

[import]uid: 4795 topic_id: 14480 reply_id: 53584[/import]

Maybe I’m doing it wrong, but here’s what I’ve been doing.

Backgrounds: 1024x768 saved as background@2x.png
512x384 saved as background.png

Other art saved at both normal and 2x sizes, thus if I have a 32x32 sprite, I will save it as object.png and I will save a 64x64 as object@2x.png. (I actually do it backwards in Photoshop, I build the larger, save with the @2x prefix, resize to 50%, save without the prefix).

Then my config.lua contains:

if system.getInfo("model") ~= "iPad" then  
 application =   
 {  
 content =  
 {  
 width = 320,  
 height = 480,  
 scale = "letterbox",  
  
 imageSuffix =   
 {  
 ["@2x"] = 2,  
 },  
 },  
 }  
  
  
else  
   
 application =   
 {  
 content =  
 {  
 width = 384,  
 height = 512,  
 scale = "letterbox",  
 imageSuffix =   
 {  
 ["@2x"] = 2,  
 },  
 },  
 }  
  

Note: I haven’t figured android out yet.

My backgrounds are developed such that the iPhone’s crop out of the middle and I let the system scale it so that the long side fits. In this case, the 512x384 will be resized by Corona to 480x360 and I center the background and 20 pixels on either side are cropped off. As long as there are no controls, sensors, or display elements in those two zones, I can use the same images on both devices.

This to me is better than a 960x640 that is going to be used on an iPad that will get scaled up to 1024x683 and still have letterboxing black borders of 42 pixels on either side.

At some point I need to figure out android in all of this. But… [import]uid: 19626 topic_id: 14480 reply_id: 53592[/import]