diff options
-rw-r--r-- | not/World.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/not/World.lua b/not/World.lua index 92e9ae0..07843fe 100644 --- a/not/World.lua +++ b/not/World.lua @@ -103,9 +103,8 @@ function World:buildMap () local bg = self:createDecoration(x, y, op.background) if op.animations then bg:setAnimationsList(op.animations) - _,_,width,height = bg:getAnimation()[1]:getViewport() - width = width * getScale() - height = height * getScale() + _,_,x,y = bg:getAnimation()[1]:getViewport() + bg:setPosition(x / -2, y / -2) end bg.layer = self:addLayer(width, height) bg.layer.transformRatio = op.ratio |