From cb6a5f72859d2fdeebaa16998e3eef583cfa7c21 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 24 Sep 2017 14:39:26 +0200 Subject: Animations should be now usable with background, not decorations yet --- not/World.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'not') diff --git a/not/World.lua b/not/World.lua index 6bc5e18..a5854d4 100644 --- a/not/World.lua +++ b/not/World.lua @@ -133,8 +133,8 @@ function World:buildMap () y = op.y elseif op.animations then entity:setAnimationsList(getAnimations(op.animations)) - _,_,x,y = bg:getAnimation()[1]:getViewport() - bg:setPosition(x / -2, y / -2) + _,_,x,y = entity:getAnimation()[1]:getViewport() + x, y = x / -2, y / -2 else local image = love.graphics.newImage(imagePath) x = image:getWidth() / -2 -- cgit v1.1