Skip to content

Instantly share code, notes, and snippets.

@elvenhope
Last active August 29, 2019 14:29
Show Gist options
  • Save elvenhope/1dafe0905c75efcc27e73545378874e5 to your computer and use it in GitHub Desktop.
Save elvenhope/1dafe0905c75efcc27e73545378874e5 to your computer and use it in GitHub Desktop.
local composer = require( "composer" )
local scene = composer.newScene()
local Width = display.contentWidth
local Height = display.contentHeight
function scene:create( event )
local sceneGroup = self.view
end
function scene:show( event )
local sceneGroup = self.view
local phase = event.phase
if ( phase == "will" ) then
elseif ( phase == "did" ) then
end
end
function scene:hide( event )
local sceneGroup = self.view
local phase = event.phase
if ( phase == "will" ) then
elseif ( phase == "did" ) then
end
end
function scene:destroy( event )
local sceneGroup = self.view
end
--------------------------------------------------------------------------------
-- Listener setup
--------------------------------------------------------------------------------
scene:addEventListener( "create", scene )
scene:addEventListener( "show", scene )
scene:addEventListener( "hide", scene )
scene:addEventListener( "destroy", scene )
--------------------------------------------------------------------------------
return scene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment