diff options
author | Aki <nthirtyone@gmail.com> | 2017-01-20 14:24:50 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-01-20 14:24:50 +0100 |
commit | ff957be7d38a3143aa89a798184a975af00998bc (patch) | |
tree | b038c8d9acbdbfb4d1cabe0a3865501e1b1dd131 /ground.lua | |
parent | 444eaa53c31704186cf38dbadfab1a5f014b78b4 (diff) | |
download | roflnauts-ff957be7d38a3143aa89a798184a975af00998bc.zip roflnauts-ff957be7d38a3143aa89a798184a975af00998bc.tar.gz roflnauts-ff957be7d38a3143aa89a798184a975af00998bc.tar.bz2 |
Animated platform test for Abyss small
Diffstat (limited to 'ground.lua')
-rw-r--r-- | ground.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |