summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-05 16:30:51 +0200
committerAki <nthirtyone@gmail.com>2016-08-05 16:30:51 +0200
commitbf5f449516673d63e03b7a8859f419a9667ac295 (patch)
tree16ecc8282cbeab6f6189fedd2001c416b5509f67 /main.lua
parent17f4ae2f06e041edb3ecb30035c713a77c64fb46 (diff)
downloadroflnauts-bf5f449516673d63e03b7a8859f419a9667ac295.zip
roflnauts-bf5f449516673d63e03b7a8859f419a9667ac295.tar.gz
roflnauts-bf5f449516673d63e03b7a8859f419a9667ac295.tar.bz2
Main menu music
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