While using Composer, our main.lua
file is still vital since it is the first thing that Corona SDK looks at to launch an application in the simulator. We're going to add some lines of code that will change scenes for our game:
main.lua
and let's add it back in our status bar:display.setStatusBar( display.HiddenStatusBar )
loadmainmenu
. We will create this scene in the next couple of sections:-- require controller module local composer = require ( "composer" ) -- load first screen composer.gotoScene( "loadmainmenu" )