Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vertLines
- local tArgs = {...}
- local x = tonumber(tArgs[1])
- local y = tonumber(tArgs[2])
- local screen = tArgs[3]
- local width = 0
- for i=1,#screen,1 do
- if string.len(screen[i]) > width then width = string.len(screen[i]) end
- end
- for dX = 1, width, 2 do
- for dY = 1, #screen, 1 do
- term.setCursorPos(dX+x-1,dY+y-1)
- if dX <= string.len(screen[dY]) then
- term.write(string.sub(screen[dY],dX,dX))
- end
- end
- sleep(.25)
- end
- for dX = 2, width, 2 do
- for dY = 1, #screen, 1 do
- term.setCursorPos(dX+x-1,dY+y-1)
- if dX <= string.len(screen[dY]) then
- term.write(string.sub(screen[dY],dX,dX))
- end
- end
- sleep(.25)
- end
Advertisement
Add Comment
Please, Sign In to add comment