From 8f9182baff36d33c07c5eb8df795e3cfcd5307a5 Mon Sep 17 00:00:00 2001 From: cursed22bc Date: Sun, 1 Mar 2026 11:17:23 +0200 Subject: improved tileset and load --- world.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world.lua') diff --git a/world.lua b/world.lua index 2098040..6890e60 100644 --- a/world.lua +++ b/world.lua @@ -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() -- cgit v1.2.3