diff options
Diffstat (limited to 'world.lua')
| -rw-r--r-- | world.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,17 +21,17 @@ function World:new() return self end -function World:load(levelPath) +function World:load(mapPath, tilesetPath) if self.physicsWorld then self.groundEntities = {} end self.physicsWorld = love.physics.newWorld(0, GRAVITY) self.physicsWorld:setCallbacks(nil, nil, nil, nil) - self.tilemap = Tilemap:new(levelPath) + self.tilemap = Tilemap:new(mapPath, tilesetPath) self.mapData = self.tilemap:getMapData() if not self.mapData then - error("World:load - no map data from " .. tostring(levelPath)) + error("World:load - no map data from " .. tostring(mapPath)) end local tileWidth = self.tilemap:getTileWidth() |
