From 463f23bfd4510c95d2290fe0aa5b0ea2998d5786 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 5 Sep 2017 19:15:52 +0200 Subject: Move clouds in front of decorations --- not/World.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'not') diff --git a/not/World.lua b/not/World.lua index 097b21a..f2dc391 100644 --- a/not/World.lua +++ b/not/World.lua @@ -213,21 +213,18 @@ function World:draw () local offset_x, offset_y = self.camera:getOffsets() local scale = getScale() local scaler = getRealScale() - - -- Background - -- love.graphics.draw(self.background, 0, 0, 0, scaler, scaler) - - -- TODO: this needs to be reworked! - -- Draw clouds - for _,cloud in pairs(self.Clouds) do - cloud:draw(offset_x, offset_y, scale) - end -- Draw decorations for _,decoration in pairs(self.Decorations) do decoration:draw(offset_x, offset_y, scale) end + -- Draw clouds + -- TODO: hotfix Clouds are drawn in front of decoration to make them in front of background. + for _,cloud in pairs(self.Clouds) do + cloud:draw(offset_x, offset_y, scale) + end + -- Draw effects for _,effect in pairs(self.Effects) do effect:draw(offset_x,offset_y, scale) -- cgit v1.1