main.lua
-- Create a grey background local background = display.newRect( 0, 0, 320, 480 ) background:setFillColor( 0.5 ) -- Create two squares local rect1 = display.newRect( 0, 0, 50, 50 ) local rect2 = display.newRect( 0, 0, 50, 50 ) -- Place the squares along the top edge -- Offset the second square with display.screenOriginY rect1.x = 62 rect2.x = 162 rect1.y = 25 rect2.y = 25 + display.screenOriginY