summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index cb9b1f2..280f5d9 100644
--- a/main.lua
+++ b/main.lua
@@ -5,6 +5,9 @@
-- This is work for scene manager
Scene = nil
function changeScene(scene)
+ if Scene ~= nil then
+ Scene:delete()
+ end
Scene = scene
end
@@ -36,6 +39,7 @@ require "world"
require "camera"
require "menu"
require "controller"
+require "music"
-- Temporary debug
debug = false