Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.577 kB
this_thread = love.thread.getThread()
require("love.timer")
require("love.filesystem")
love.filesystem.load("TSerial.lua")()
love.filesystem.load("common.lua")()
love.filesystem.load("chunk.lua")()
run = true
while run do
this_thread:send("ready", true)
commandMsg = this_thread:demand("command")
if commandMsg == "quit" then run = false
else
this_thread:send("ready", false)
local command = TSerial.unpack(commandMsg)
chunk = Chunk:new()
chunk:generate(command.seed, command.r, command.c)
this_thread:send("chunk", TSerial.pack(chunk))
end
end
Jump to Line
Something went wrong with that request. Please try again.