Advertisement
Guest User

Untitled

a guest
May 6th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. --Vars
  2. width, height = term.getSize()
  3. i = 0
  4. i_max = width*height
  5. x = 1
  6. y = 1
  7. p1 = 0
  8. p2 = 0
  9. pad1 = math.ceil(height/2)
  10. pad2 = math.ceil(height/2)
  11. up = false
  12. right = true
  13.  
  14. --Functions
  15. function drawPads()
  16. term.setCursorPos(1,pad1-1)
  17. write("#")
  18. term.setCursorPos(1,pad1)
  19. write("#")
  20. term.setCursorPos(1,pad1+1)
  21. write("#")
  22. term.setCursorPos(1,pad1-2)
  23. write(" ")
  24. term.setCursorPos(1,pad1+2)
  25. write(" ")
  26. if pad1 == 4 then
  27. term.setCursorPos(1,pad1-2)
  28. write("-")
  29. end
  30. if pad1 == 15 then
  31. term.setCursorPos(1,pad1+2)
  32. write("-")
  33. end
  34.  
  35. term.setCursorPos(width-1,pad2-1)
  36. write("#")
  37. term.setCursorPos(width-1,pad2)
  38. write("#")
  39. term.setCursorPos(width-1,pad2+1)
  40. write("#")
  41. term.setCursorPos(width-1,pad2-2)
  42. write(" ")
  43. term.setCursorPos(width-1,pad2+2)
  44. write(" ")
  45. if pad2 == 4 then
  46. term.setCursorPos(width-1,pad2-2)
  47. write("-")
  48. end
  49. if pad2 == 15 then
  50. term.setCursorPos(width-1,pad2+2)
  51. write("-")
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement