The Ultimate config file will have your app look different on each platform… i.e. phone and tablet. so much so --personally I don’t use it. It would be a headache to build for the phone and tablet with the Ultimate config file. Instead try this one: It is so sweet how everything looks perfectly on EVERY platform – it takes my breath away.
Here it is: There is an article about it somewhere:
--calculate the aspect ratio of the devicelocal aspectRatio = display.pixelHeight / display.pixelWidthapplication = { 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 = 60, imageSuffix = { ["@2x"] = 1.3, }, },}
Anyway,anything that says they’re the Ultimate is probably not the ultimate.
The article I read and use is called modernizing the config file. I think by Rob Miracle.
You can’t just paste it into your project and it works. You have to make alot adjustments – but its worth it.
You make your Bg images: 900x1425 @2x 1800x2850
You have to then scale and adjust all your display images. Don’t code x and y values as (450,780) Instead use something like (screenW*.4, screenH*.7)
When I was finished it was amazing how well it looked on all the devices. I use Windows. So I even remote rented a Mac from mac In Cloud and tested it on there. All the iPhone, 4, iPhone 5, iPad looked great!
It’s what I use these days. It makes a perfect fit regardless of the device. There is still very good information in the Ultimate config.lua and I consider it required reading before reading the above and the post on Ultimate config.lua covers all the aspects of why we need to do this and how and why we picked the numbers for the dynamic image sizing. The modernizing post does math to figure out the content area instead of device testing.