Problem:
The newRect( ) is not behaving as I expect it to according to the online api docs.
This is my code:
local block = display.newRect( display.contentCenterX, display.contentCenterY, 100, 100)
What I saw:
Picture attached.
What I expected to see:
I expected to see the center of the cube placed in the center of my screen. But as you can see, the top left corner of the cube was placed in the center of my screen instead.
Environment:
Build: 2906
Width: 320
Height: 480
Scale: letterbox
xAlign = center
y Align = center
simulation viewed as: iPhone 6