----------------------------------------------------------------------------------
--
-- scene_template.lua
--
----------------------------------------------------------------------------------
local director = require( "director" )
local scene = director.newScene()
scene:setSize(1280,960) -- set this to the desired scene size (not screen size)
-- Called when the scene is first created.
function scene:createScene( event )
-----------------------------------------------------------------------------
-- add scene elements here
-----------------------------------------------------------------------------
end
-- Called immediately after scene has moved onscreen:
function scene:didMoveToView( )
-----------------------------------------------------------------------------
-- start timers, play audio, start actions, etc.
-----------------------------------------------------------------------------
end
-- Called when scene is about to move offscreen:
function scene:willMoveFromView( )
-----------------------------------------------------------------------------
-- stop timers, remove listeners, unload sounds, etc.
-----------------------------------------------------------------------------
end
-- Called when the scene physics have been simulated
function scene:didSimulatePhysics()
end
-- Called when scenes actions have been updated
function scene:didEvaluateActions()
end
-- Called when the scene's size changes
function scene:didChangeSize(width, height)
end
-- Called once every frame
function scene:update(currentTime)
------------------------------------------
-- It is not recommended to use this --
-- method for animation - use physics --
-- and actions instead. --
------------------------------------------
end
-- Called when scene is deallocated
function scene:destroyScene( )
-----------------------------------------------------------------------------
-- remove listeners, save state, etc.
-----------------------------------------------------------------------------
end
return scene