Hey guys! I’m having some problems with picking up the best resolution for my game.How do I enable the function that allows the phone to set the proper game resolution,instead adjusting the resolution for each phone.
Thanks!
Hey guys! I’m having some problems with picking up the best resolution for my game.How do I enable the function that allows the phone to set the proper game resolution,instead adjusting the resolution for each phone.
Thanks!
What you do is pick a content area size that you want to work with and forget about device pixels. Corona SDK will automatically adjust your desired screen area to the physical pixels by scaling up or down to fit. For images, if you use display.newImageRect() instead of display.newImage() then you can use multiple resolution files, like a low res, medium res and high res image and Corona will pick the best image for the advice. This is to avoid scaling up a small image to a huge screen or using a huge image on a smaller screen taking up necessary memory and CPU.
Read this guide: http://docs.coronalabs.com/guide/basics/configSettings/index.html
Pay close attention to the two sections on Dynamic Scaling and Dynamic Image Selection. The guide will recommend a content area like 800x1200 which is fine unless you plan to use widgets from the widget.* APIs. You are best to stay with a content area of 320x480 if you intend to use widgets.
Rob
What you do is pick a content area size that you want to work with and forget about device pixels. Corona SDK will automatically adjust your desired screen area to the physical pixels by scaling up or down to fit. For images, if you use display.newImageRect() instead of display.newImage() then you can use multiple resolution files, like a low res, medium res and high res image and Corona will pick the best image for the advice. This is to avoid scaling up a small image to a huge screen or using a huge image on a smaller screen taking up necessary memory and CPU.
Read this guide: http://docs.coronalabs.com/guide/basics/configSettings/index.html
Pay close attention to the two sections on Dynamic Scaling and Dynamic Image Selection. The guide will recommend a content area like 800x1200 which is fine unless you plan to use widgets from the widget.* APIs. You are best to stay with a content area of 320x480 if you intend to use widgets.
Rob