forked from gideros/Scene-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscene1.lua
More file actions
30 lines (23 loc) · 747 Bytes
/
scene1.lua
File metadata and controls
30 lines (23 loc) · 747 Bytes
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
Scene1 = gideros.class(Sprite)
function Scene1:init(t)
if t then
print("Scene1: ", t)
end
self:addChild(Bitmap.new(Texture.new("gfx/scene1.jpg")))
self:addEventListener("enterBegin", self.onTransitionInBegin, self)
self:addEventListener("enterEnd", self.onTransitionInEnd, self)
self:addEventListener("exitBegin", self.onTransitionOutBegin, self)
self:addEventListener("exitEnd", self.onTransitionOutEnd, self)
end
function Scene1:onTransitionInBegin()
print("scene1 - enter begin")
end
function Scene1:onTransitionInEnd()
print("scene1 - enter end")
end
function Scene1:onTransitionOutBegin()
print("scene1 - exit begin")
end
function Scene1:onTransitionOutEnd()
print("scene1 - exit end")
end