Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Vars
- width, height = term.getSize()
- i = 0
- i_max = width*height
- x = 1
- y = 1
- p1 = 0
- p2 = 0
- pad1 = math.ceil(height/2)
- pad2 = math.ceil(height/2)
- up = false
- right = true
- --Functions
- function drawPads()
- term.setCursorPos(1,pad1-1)
- write("#")
- term.setCursorPos(1,pad1)
- write("#")
- term.setCursorPos(1,pad1+1)
- write("#")
- term.setCursorPos(1,pad1-2)
- write(" ")
- term.setCursorPos(1,pad1+2)
- write(" ")
- if pad1 == 4 then
- term.setCursorPos(1,pad1-2)
- write("-")
- end
- if pad1 == 15 then
- term.setCursorPos(1,pad1+2)
- write("-")
- end
- term.setCursorPos(width-1,pad2-1)
- write("#")
- term.setCursorPos(width-1,pad2)
- write("#")
- term.setCursorPos(width-1,pad2+1)
- write("#")
- term.setCursorPos(width-1,pad2-2)
- write(" ")
- term.setCursorPos(width-1,pad2+2)
- write(" ")
- if pad2 == 4 then
- term.setCursorPos(width-1,pad2-2)
- write("-")
- end
- if pad2 == 15 then
- term.setCursorPos(width-1,pad2+2)
- write("-")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement