make turtle go back to starting position after printing
This commit is contained in:
@@ -456,6 +456,10 @@ local function printdes(buf, dimensions)
|
|||||||
cx,cz,direction = moveto(1,1,cx,cz,direction)
|
cx,cz,direction = moveto(1,1,cx,cz,direction)
|
||||||
move("up")
|
move("up")
|
||||||
end
|
end
|
||||||
|
moveto(0,0, cx,cz, direction)
|
||||||
|
for _=1,dimensions["y"]*(4)+1,1 do -- go back to starting position
|
||||||
|
move("down")
|
||||||
|
end
|
||||||
center(direction)
|
center(direction)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user