Skip to content

Commit 3dff4a5

Browse files
committed
Use base scene function by default
This only apply if a base scene is given
1 parent b6ddeb6 commit 3dff4a5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sceneman.lua

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ function sceneman:newscene(base)
99
scene.loaded = false
1010
scene.started = false
1111

12-
function scene:load() end
13-
function scene:start() end
14-
function scene:update() end
15-
function scene:draw() end
16-
function scene:tofront() end
17-
function scene:toback() end
18-
function scene:stop(...) end
19-
function scene:quit(...) end
12+
scene.load = scene.load or function() end
13+
scene.start = scene.start or function() end
14+
scene.update = scene.update or function() end
15+
scene.draw = scene.draw or function() end
16+
scene.tofront = scene.tofront or function() end
17+
scene.toback = scene.toback or function() end
18+
scene.stop = scene.stop or function() end
19+
scene.quit = scene.quit or function() end
2020

2121
function scene:isloaded()
2222
return self.loaded

0 commit comments

Comments
 (0)