summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-05 19:15:52 +0200
committerAki <nthirtyone@gmail.com>2017-09-05 19:15:52 +0200
commit463f23bfd4510c95d2290fe0aa5b0ea2998d5786 (patch)
tree5e774382befb2d83da8546eeca6c03679518d0a2
parentde86586e3957be9e0794698e86ce913adc91beea (diff)
downloadroflnauts-463f23bfd4510c95d2290fe0aa5b0ea2998d5786.zip
roflnauts-463f23bfd4510c95d2290fe0aa5b0ea2998d5786.tar.gz
roflnauts-463f23bfd4510c95d2290fe0aa5b0ea2998d5786.tar.bz2
Move clouds in front of decorations
-rw-r--r--not/World.lua15
1 files changed, 6 insertions, 9 deletions
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)