hi i need help with this
----------------------------------------------------------------------------------------- -- -- menu.lua -- ----------------------------------------------------------------------------------------- local composer = require( "composer" ) local scene = composer.newScene() local scene = composer.newScene() local inMobi = require( "plugin.inMobi" ) local musicTrack -------------------------------------------- -- forward declarations and other locals local function gotoGame() composer.gotoScene( "game", { time=700, effect="crossFade" } ) end local function gotoHighScores() composer.gotoScene( "highscores", { time=700, effect="crossFade" } ) end local function gotoHelp() composer.gotoScene( "help", {time=714, effect="crossFade" } ) end function scene:create( event ) local sceneGroup = self.view -- Called when the scene's view does not exist. -- -- INSERT code here to initialize the scene -- e.g. add display objects to 'sceneGroup', add touch listeners, etc. -- display a background image local background = display.newImageRect( sceneGroup, "scene/menu/img/background.png", display.actualContentWidth, display.actualContentHeight ) background.x = display.contentCenterX background.y = display.contentCenterY -- create/position logo/title image on upper-half of the screen local titleLogo = display.newImageRect( sceneGroup, "scene/menu/img/logo.png", 564, 318 ) titleLogo.x = display.contentCenterX titleLogo.y = 100 --play button local playButton = display.newImageRect( sceneGroup, "scene/menu/img/playbtn.png", 187, 82 ) playButton.x = display.contentCenterX playButton.y = 590 --highscores button local highScoresButton = display.newImageRect( sceneGroup, "scene/menu/img/highscr.png", 389, 147 ) highScoresButton.x = display.contentCenterX highScoresButton.y = 690 --helpButton local helpButton = display.newImageRect( sceneGroup, "scene/menu/img/helpbtn.png", 448, 259 ) helpButton.x = display.contentCenterX helpButton.y = 810 playButton:addEventListener( "tap", composer.gotoScene( "scene.game", { params = {} } ) ) highScoresButton:addEventListener( "tap", composer.gotoScene( "scene.highScores", { params = {} } ) ) helpButton:addEventListener( "tap", composer.gotoScene( "scene.help", { params = {} } ) ) musicTrack = audio.loadStream( "scene/menu/audio/bg.mp3" ) end -- show() function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then -- Code here runs when the scene is still off screen (but is about to come on screen) elseif ( phase == "did" ) then -- Code here runs when the scene is entirely on screen -- Start the music! audio.play( musicTrack, { channel=1, loops=-1 } ) end end -- hide() function scene:hide( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then -- Code here runs when the scene is on screen (but is about to go off screen) elseif ( phase == "did" ) then -- Code here runs immediately after the scene goes entirely off screen -- Stop the music! audio.stop( 1 ) end end -- destroy() function scene:destroy( event ) local sceneGroup = self.view -- Code here runs prior to the removal of scene's view -- Dispose audio! audio.dispose( musicTrack ) end --------------------------------------------------------------------------------- -- Listener setup scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) ----------------------------------------------------------------------------------------- return scene
could anyone please tell me where i’m wrong here this is my menu lua file