summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-11 01:21:31 +0200
committerAki <nthirtyone@gmail.com>2017-07-11 01:21:31 +0200
commit4e69182a6d36966847430f01b440a9cdac0e4cdc (patch)
treeb2d29a02e2cd10929a3f91926147a882b47fb42d /main.lua
parent0b3de32ee8b9d79d7b818a6742ab577ff47525e6 (diff)
downloadroflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.zip
roflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.tar.gz
roflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.tar.bz2
Moved scene managment to SceneManager (non-existant)
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/main.lua b/main.lua
index ba1bfca..6028c84 100644
--- a/main.lua
+++ b/main.lua
@@ -1,17 +1,6 @@
--- Roflnauts 2
-- TODO: Any lua source file in root directory that is not `main` (this file), `conf` should be moved to a proper directory. Its name should be changed to show what it contains.
--- Pretend you didn't see this
--- This is work for scene manager
--- TODO: Create SceneManager or similar class.
-Scene = nil
-function changeScene (scene)
- if Scene ~= nil then
- Scene:delete()
- end
- Scene = scene
-end
-
-- Should be moved to scene/camera
-- TODO: move following functions to `Camera`.
function getScale ()
@@ -24,6 +13,7 @@ end
-- Require
require "iconsList"
+require "not.SceneManager"
require "not.World"
require "not.Camera"
require "not.Menu"