rerere284

Hole maker

Mar 16th, 2012
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("static")
  2.  
  3. function hole()
  4. x,y = term.getSize()
  5. middley = y/2
  6. middlex = x/2
  7. holesize = 1
  8.  
  9. term.setCursorPos(middlex - holesize,middley + holesize)
  10.  
  11. write("/")
  12. for i=1,holesize do
  13. write("-")
  14. end
  15. print("\\")
  16.  
  17. prog = 0
  18. for i=1,holesize do
  19. setCursorPos(middlex - holesize, middley + holesize - prog)
  20. write("|")
  21. for i=1,holesize do
  22. write(" ")
  23. end
  24. write("|")
  25. prog = prog + 1
  26. end
  27.  
  28.  
  29.  
  30. term.setCursorPos(middlex - holesize,middley - holesize)
  31. write("/")
  32. for i=1,holesize do
  33. write("-")
  34. end
  35. print("\\")
  36. end
  37.  
  38. while true do
  39. term.clear()
  40. static.static()
  41.  
  42.  
  43. for i=1,10 do
  44. for i=1,20 do
  45. hole()
  46. sleep(0.02)
  47. end
  48. holesize = holesize + 2
  49. sleep(2)
  50. end
  51. end
RAW Paste Data