From ff957be7d38a3143aa89a798184a975af00998bc Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 20 Jan 2017 14:24:50 +0100 Subject: Animated platform test for Abyss small --- ground.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ground.lua') diff --git a/ground.lua b/ground.lua index 50ded4f..1318c11 100644 --- a/ground.lua +++ b/ground.lua @@ -17,7 +17,7 @@ Ground.__index = Ground setmetatable(Ground, Animated) -- Constructor of `Ground` -function Ground:new (game, world, x, y, shape, sprite) +function Ground:new (game, world, x, y, shape, sprite, animations) local o = {} setmetatable(o, self) o.body = love.physics.newBody(world, x, y) @@ -40,6 +40,7 @@ function Ground:new (game, world, x, y, shape, sprite) end -- END HERE o:setSprite(love.graphics.newImage(sprite)) + o:setAnimationsList(animations) o.world = game return o end -- cgit v1.1