diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-12 05:48:21 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-12 05:48:21 +0200 |
commit | 939a4dacec3bb1f7acff18f07eff74224ce8ad2c (patch) | |
tree | 56e6764864096753975240e79cb13eadb2cfe356 | |
parent | 9e29f6127fc27e58a5680a8aa6bea7336add4755 (diff) | |
download | roflnauts-939a4dacec3bb1f7acff18f07eff74224ce8ad2c.zip roflnauts-939a4dacec3bb1f7acff18f07eff74224ce8ad2c.tar.gz roflnauts-939a4dacec3bb1f7acff18f07eff74224ce8ad2c.tar.bz2 |
Background now should accept animations
-rw-r--r-- | not/World.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |