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 --- world.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world.lua') diff --git a/world.lua b/world.lua index e594c32..30359fd 100644 --- a/world.lua +++ b/world.lua @@ -93,7 +93,7 @@ function World:loadMap(name) self.map = map() -- Platforms for _,platform in pairs(self.map.platforms) do - self:createPlatform(platform.x, platform.y, platform.shape, platform.sprite) + self:createPlatform(platform.x, platform.y, platform.shape, platform.sprite, platform.animations) end -- Decorations for _,decoration in pairs(self.map.decorations) do @@ -125,8 +125,8 @@ function World:getSpawnPosition() end -- Add new platform to the world -function World:createPlatform(x, y, polygon, sprite) - table.insert(self.Platforms, Ground:new(self, self.world, x, y, polygon, sprite)) +function World:createPlatform(x, y, polygon, sprite, animations) + table.insert(self.Platforms, Ground:new(self, self.world, x, y, polygon, sprite, animations)) end -- Add new naut to the world -- cgit v1.1