Open-Terrarium/map_load.lua
2017-07-17 03:32:42 -04:00

14 lines
289 B
Lua

while true do
--load old tiles
print("load old")
--tiles = TSerial.unpack(love.filesystem.read("/map/"..chunkx+xx.."_"..chunky+yy..".txt"))
savechannel:push{"load_old","/map/"..xx.."_"..yy..".txt"}
local tiles = loadchannel:pop()
print(tiles)
loaded_chunks[xx][yy] = tiles
end