I know many other have posted on this but I have read there posts and I am now more confused that before.
This is my config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “zoomEven”,
imageSuffix =
{
["@2"] = 2,
},
},
}
This is my code (stripped down to test the idea)
local menuBackgroundImg = display.newImageRect(“iphone.png”, 640, 960)
Now thing is if I run on simulator I get the correct image / image substitution (as I have made them two coloured square) but unless I put in 640,960 (as show) then they do not scale to fill the screen on the sim in iphone 4 or 3g (which seems strange as the project is 320,480 and the box is 320x480).
I am confused as I though from this:-
http://developer.anscamobile.com/content/configuring-projects#Dynamic_Image_Resolution
We were supposed to use the coordinates system of 320 x 480 to place assets etc and then just have the hi res versions substituted so not to have to layout using 480 x 960
I am confused as I have laid out my app and art at 320x480 but can easily export at x4 res but do I make the width and height in config.lua iphone 4 and have to reposition things (e.g. optioned set to be 10x10 pixel from top left) or do I leave as is and use image substitution if so why do I have to make imageRect 640 x 960 even to run on iphone 3
???
???
[import]uid: 5872 topic_id: 2163 reply_id: 302163[/import]