summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-24 14:39:26 +0200
committerAki <nthirtyone@gmail.com>2017-09-24 14:39:26 +0200
commitcb6a5f72859d2fdeebaa16998e3eef583cfa7c21 (patch)
treef4dcb4a01cc55811e7889b5731f3e4c9532c199b /not/World.lua
parentd651584d7a550a507670d9e028ed1c9be5fae427 (diff)
downloadroflnauts-cb6a5f72859d2fdeebaa16998e3eef583cfa7c21.zip
roflnauts-cb6a5f72859d2fdeebaa16998e3eef583cfa7c21.tar.gz
roflnauts-cb6a5f72859d2fdeebaa16998e3eef583cfa7c21.tar.bz2
Animations should be now usable with background, not decorations yet
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua4
1 files changed, 2 insertions, 2 deletions
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