File main.lua
display.setStatusBar(display.HiddenStatusBar) local composer = require( "composer" ) display.setStatusBar(display.HiddenStatusBar) display.setDefault( "anchorX", 0 ) display.setDefault( "anchorY", 0 ) display.setDefault( "isAnchorClamped", true ) composer.gotoScene( "maps" )
File maps.lua
local composer = require ( "composer" )
local scene = composer.newScene()
local ID = system.getInfo( “deviceID” )
function scene:create( event )
local sceneGroup = self.view
–
– Начало сцены Maps.lua
–
local background = display.newImage( “maps.png” )
sceneGroup:insert ( background )
–
– Конец сцены Maps.lua
–
end
scene:addEventListener( “create”, scene )
return scene
When loading, the area remains at the top and the coordinates are shifted by 42 units.
How to fix this defect?