From 939a4dacec3bb1f7acff18f07eff74224ce8ad2c Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 12 Sep 2017 05:48:21 +0200 Subject: Background now should accept animations --- not/World.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/not/World.lua b/not/World.lua index d7b69b2..d3f126f 100644 --- a/not/World.lua +++ b/not/World.lua @@ -78,6 +78,9 @@ function World:buildMap () local x = image:getWidth() / -2 local y = image:getHeight() / -2 local bg = self:createDecoration(x, y, op.background) -- TODO: Decoration does not allow Image instead of filePath! + if op.animations then + bg:setAnimationsList(op.animations) + end bg.layer = self.layers[1] end end -- cgit v1.1