@2x.png (iPhone4)

Hello, do you need to use the @2x.png image (double size/resolution)
so it can look (great) on iPhone4 Retina screen? The Reason I asked this
is because I created a game and the game seems to be running fine on
all devices (iphone4, iPod, iPad) it runs fine on corona simulator and
xcode simulator too, on iPhone4 the game looks good without using
@2x.png images. Do I need to use @2x.png images to submit my app
to apple?

Thanks in advance! [import]uid: 30314 topic_id: 7858 reply_id: 307858[/import]

You don’t need to use the @2 images to submit to the app store. However…

The first version of my first game didn’t use @2 images and it looked GREAT on my iPhone4.

For the second version I redid all the text and graphics as @2 and the result was STAGGERING! It looks SOOOO much better so it’s well worth doing. [import]uid: 9371 topic_id: 7858 reply_id: 27905[/import]

If you want to support retina display images on iPhone 4 (it is optional) use display.newImageRect() for your images instead of display.newImage() and update your config.lua file with the following:

[lua]-- config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,

imageSuffix =
{
["@x2"] = 2, – A good scale for iPhone 4 and iPad
},
},
}[/lua]

As a quick comparison between newImage and newImageRect, here is an example:

[lua]-- newImageRect
object = display.newImageRect(“object.png”, 100, 100) – 100, 100 here sets the size of the Rect
object.x = 50 – imageRect location x
object.y = 50 – imageRect location y

– newImage
object = display.newImage( “object.png”, 100, 100 ) – 100, 100 here is the image location[/lua]

Hope this helps [import]uid: 33866 topic_id: 7858 reply_id: 27910[/import]

Thank you for help, I had an idea how to support retina
I was not sure if I (needed) too for apple to accept my app
but I guess if it makes it look better then it looks so far
which is already good enough then why not :slight_smile:

again thanks for all your help! [import]uid: 30314 topic_id: 7858 reply_id: 27949[/import]