-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.lua
47 lines (35 loc) · 1.49 KB
/
about.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
local ui = require "scripts.lib.ui"
local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF VARIABLE DECLARATIONS
---------------------------------------------------------------------------------
local screen = nil
---------------------------------------------------------------------------------
-- END OF VARIABLE DECLARATIONS
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
function scene:createScene( event )
screen = self.view
end
function scene:enterScene( event )
print("About loaded...")
end
function scene:exitScene( event )
-- stop timers, sound, etc.
end
function scene:destroyScene( event )
-- free up resources here
end
---------------------------------------------------------------------------------
-- END OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
scene:addEventListener( "createScene", scene )
scene:addEventListener( "enterScene", scene )
scene:addEventListener( "exitScene", scene )
scene:addEventListener( "destroyScene", scene )
---------------------------------------------------------------------------------
return scene