x2 images in simulator

Should we expect to see our larger assets appear in the simulator?

For example, if I have a smaller asset and a larger asset (named appropriately), and I switch between viewing the app on the iPhone simulator and iPad retina display should expect to see the image selected by Corona to appear correctly in the simulator based on the device size?

Hope that makes sense. Thanks. [import]uid: 161992 topic_id: 31866 reply_id: 331866[/import]

Hi Jeremy,

Your question does make sense, and the answer is yes, Corona Simulator does swap in the higher resolution image when you’re simulating a higher resolution device.

  • Andrew [import]uid: 109711 topic_id: 31866 reply_id: 127167[/import]

Yeah it defo works in the simulator. I wasn’t sure so I took my @2x graphics into Photoshop and drawn all over them (made a copy first) and in the simulator when swapping to the iPad layout I could see the graphics change to the ones with drawing all over them.

Dave [import]uid: 117617 topic_id: 31866 reply_id: 127181[/import]

Hi Jeremy,

Your question does make sense, and the answer is yes, Corona Simulator does swap in the higher resolution image when you’re simulating a higher resolution device.

  • Andrew [import]uid: 109711 topic_id: 31866 reply_id: 127167[/import]

Yeah it defo works in the simulator. I wasn’t sure so I took my @2x graphics into Photoshop and drawn all over them (made a copy first) and in the simulator when swapping to the iPad layout I could see the graphics change to the ones with drawing all over them.

Dave [import]uid: 117617 topic_id: 31866 reply_id: 127181[/import]

Thanks for the replies.

Just to confirm, I was able to get this to work. I simply did not have the appropriate “imageSuffix” entry in my config.lua file. I added a big text “x2” on top of the larger asset in photoshop. I was able to see the asset change between iPhone 3 and iPad Retina.

Thanks again. [import]uid: 161992 topic_id: 31866 reply_id: 128480[/import]

Thanks for the replies.

Just to confirm, I was able to get this to work. I simply did not have the appropriate “imageSuffix” entry in my config.lua file. I added a big text “x2” on top of the larger asset in photoshop. I was able to see the asset change between iPhone 3 and iPad Retina.

Thanks again. [import]uid: 161992 topic_id: 31866 reply_id: 128480[/import]