I know some folks like to write complex config.lua files, but honestly that has always caused me more trouble than it is worth.
In SSK2 (not beautiful code, but wonderful solutions to many common problems), I implement variables:
left, right, top, bottom - The edges of the current screen regardless of configuration
w, h - The values specified in config.lua
fullw, fullh, - The actual width and height (not pixels, but scaled w and h)
centerX, centerY - Just what they sound like.
unusedWidth, unusedHeight - Sometimes useful values that basically tell me if the device is wider or taller than my config.lua values and by how much. Only one can have a non-zero value and sometimes both are 0.
Armed with this and a solid knowledge of the absolute maximum scaled widths, I can easily create single assets that are suitable in all cases. As well I can choose to adjust to the changing width or go with a fixed layout. I usually do the prior.
I know some folks like to write complex config.lua files, but honestly that has always caused me more trouble than it is worth.
In SSK2 (not beautiful code, but wonderful solutions to many common problems), I implement variables:
left, right, top, bottom - The edges of the current screen regardless of configuration
w, h - The values specified in config.lua
fullw, fullh, - The actual width and height (not pixels, but scaled w and h)
centerX, centerY - Just what they sound like.
unusedWidth, unusedHeight - Sometimes useful values that basically tell me if the device is wider or taller than my config.lua values and by how much. Only one can have a non-zero value and sometimes both are 0.
Armed with this and a solid knowledge of the absolute maximum scaled widths, I can easily create single assets that are suitable in all cases. As well I can choose to adjust to the changing width or go with a fixed layout. I usually do the prior.