Hi guys
this is my config.lua:
application = { content = { width = 320, height = 480, scale = "letterbox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3, }, }, notification = { iphone = { types = { "badge", "sound", "alert" }, }, }, }
so when I then created an image I do something like:
local ball = display.newImageRect( "ball.png", 30, 30 ) ball:translate(160, 250)
and in my folder I have the following files:
-
“ball.png” (30x30)
-
“ball@2x.png” (60x60)
-
“ball@4x.png” (120*120)
Everything works as expected.
My question is:
The base resolution (30 * 30) is required? I did some tests and it seems that no device in the simulator uses it.
I want the images to be optimized for all devices.
However, if there are images that are not needed, I do not want to occupy useless space in my apk…
Thanks in advance