I'm creating simple game using corona.
First thing i'm trying to do is load the background image; but what i got is that, corona simulator show small part of image at the top most left side and the rest of image stay black even if i used all the scaling mode and i'm sure from image size.
Then i added three parameter to the display.newimage
method so i got better situation but i still have a black bar on the left.
My config.lua
application = {
content = {
fps = 60,
width = 320,
height = 480,
scale = "zoomEven",
-- xAlign = "center",
--yAlign = "center",
imageSuffix = {
["@2x"] = 2;
},
},
}
and main.lua
local background = display.newImage("images/clouds.png");
first result on all devices
then what i made to got better result is make this small edit to main.lua
local background = display.newImage("images/clouds.png",230,150, true);
and the second result