gamecore/scenemanager: draw the world before drawing the scene

This commit is contained in:
Kazhnuz 2019-05-30 13:37:30 +02:00
parent 48aa0a3eab
commit e73d6804f5

View file

@ -108,9 +108,9 @@ end
function SceneManager:draw() function SceneManager:draw()
self.controller.screen:apply() self.controller.screen:apply()
if (self.currentScene ~= nil) then if (self.currentScene ~= nil) then
self.currentScene:drawWorld()
self.currentScene:draw(dt) self.currentScene:draw(dt)
self.currentScene.menusystem:draw() self.currentScene.menusystem:draw()
self.currentScene:drawWorld()
end end
self.controller.screen:cease() self.controller.screen:cease()
end end