.
This commit is contained in:
parent
3fc7ef3481
commit
f5eea02418
@ -67,19 +67,23 @@ for k,v in pairs(lines) do
|
||||
end
|
||||
end
|
||||
|
||||
for i=1, #matrix do
|
||||
print("matrix[" .. i .. "]")
|
||||
print(textutils.serialize(matrix[i]))
|
||||
sleep(3)
|
||||
end
|
||||
|
||||
|
||||
function buildShape(matrix)
|
||||
for i=1, #matrix do
|
||||
for j=1, #matrix[i] do
|
||||
print(i .. "," .. j .. ": " .. matrix[i][j])
|
||||
sleep(1)
|
||||
--print(i .. "," .. j .. ": " .. matrix[i][j])
|
||||
--sleep(1)
|
||||
turtle.placeDown()
|
||||
turtle.forward()
|
||||
end
|
||||
for j=1, #matrix[i] do
|
||||
turtle.back()
|
||||
end
|
||||
turtle.turnRight()
|
||||
turtle.forward()
|
||||
turtle.turnLeft()
|
||||
end
|
||||
end
|
||||
|
||||
buildShape(matrix)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user