Hello everyone i’m new to corona I just just started reading a book corona sdk mobile game development.
In the book there is an example for adding a background image and 3 other images. I know that I’ve typed the code correctly but none of the images display properly this is the code
local background = display.newImage("glassbg.png", true) local image01 = display.newImage("moon.png", 160, 133) local image02 = display.newImage("moon.png") image02.x = 160; image02.y = 266 image03 = display.newImage("moon.png") image03.x = 160; image03.y = 399
for images 1-3 I had to change the X and Y because the ones in the book did not work I also tried to make the config.lua file like so
application = { content = { width = 320, height = 480, scale = "letterbox", xAlign = "left", yAlign = "top", }, }
this is exactly what the book said do but in the corona simulator none of the “view as” (whatever) shows correctly the background only stretches halfway down the screen btw the background.png is 600 X 600 if that helps…I hope I haven’t broke any rules as this is my first post