All project files not only contain a main.lua
file but other .lua
and related assets as needed for your project. Some Corona projects are configured using a config.lua
file that is compiled into your project and accessed at runtime. This allows you to specify dynamic content scaling, dynamic content alignment, dynamic image resolution, frame rate control, and anti-aliasing all at the same time so that the output on every type of device is displayed similarly.
You can specify to Corona what the original screen size for your content is. Then allow it to scale your app to run on a device that has a different screen size to the original.
The following values should be used to scale content:
width
(number)—Screen resolution width of the original target device (in portrait orientation)height
(number)—Screen resolution height of the original target device (in portrait orientation)scale
(string)—Type of autoscaling from the following:none
—Dynamic content...