Last active
August 29, 2019 14:29
-
-
Save elvenhope/1dafe0905c75efcc27e73545378874e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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