for y=1, #currentMap do
for x=1, #currentMap[y] do
if currentMap[y][x] == 1 then
walls[#walls+1] = wall(x*10, y*64)
end
end
end
for i, wall in pairs(walls) do
wall:draw()
end
in love.draw() but I don't know how to do it in a more efficient way. Any suggestions? Thanks
You should avoid to generate all your tiles every frame.
here is another way to create your map. It demonstates the usage of an canvas and how to re-generate the map.