summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/not/World.lua b/not/World.lua
index 7d40476..d4d933f 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -52,7 +52,8 @@ 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, platform.animations)
+ local config = love.filesystem.load(string.format("config/platforms/%s.lua", platform.config))()
+ self:createPlatform(platform.x, platform.y, config.shape, config.sprite, platform.animations)
end
-- Decorations
for _,decoration in pairs(self.map.decorations) do