Hi I’m new here, I need your help for the problem below:
I write the following code:
– most commonly used screen coordinates
centerX = display.contentCenterX
centerY = display.contentCenterY
screenLeft = display.screenOriginX
screenWidth = display.contentWidth - screenLeft * 2
screenRight = screenLeft + screenWidth
screenTop = display.screenOriginY
screenHeight = display.contentHeight - screenTop * 2
screenBottom = screenTop + screenHeight
display.contentWidth = screenWidth
display.contentHeight = screenHeight
– create backgroung
local sky = display.newRect(screenLeft,screenTop,screenWidth,screenHeight )
My expected result is to have it in full screen, but I got it in the different result(see attached image).
I don’t know what I missed, please help.
thanks