I’m trying to wrap my head around how to properly configure my project so that images with the @2x suffix can be utilized when run on iPhone 4
The code is simple (as I’m just testing how visual assets are loaded according to device)
--main.lua
--Setup background image
local bg = display.newImage("images/10x10\_checkerboard.png")
--There is also an image in the images folder: "images/10x10\_checkerboard@2x.png"
bg.x = display.contentWidth/2
bg.y = display.contentHeight/2
--config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = "zoomEven",
imageSuffix =
{
["@2x"] = 2
},
},
}
No matter what I do, the @2x isn’t loaded on the device. What am I doing wrong? [import]uid: 7947 topic_id: 4421 reply_id: 304421[/import]