Hi all, I’m just starting to learn how to use Corona and I’ve hit a problem with my High Resolution Images never being displayed.
I read the tutorial over at http://www.coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/ and used the config.lua provided to make an 800x1200 content area:
local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1.5 and 800 or math.ceil( 1200 / aspectRatio ), height = aspectRatio \< 1.5 and 1200 or math.ceil( 800 \* aspectRatio ), scale = "letterBox", fps = 30, imageSuffix = { ["@2x"] = 1.3, }, }, }
I created two images: Test.png (256x256) and Test@2x.png (512x512) which are both a solid color (one is gray the other is green). I added the normal image in my main.lua and placed it in the center of the screen:
local testimage = display.newImage( "Test.png", 400, 600 )
Corona will only display the normal sized image and never use the high resolution version regardless of simulator that I use. It also slightly offsets the image to the top left of the screen for most simulators (S3, iPad Retina, iPad).
Does anyone see what I have done wrong?