SHARE
TWEET

Hole maker

rerere284 Mar 16th, 2012 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI(static)
  2.  
  3. while true do
  4. term.clear()
  5. static.fastStatic()
  6.  
  7. function hole()
  8. x,y = term.getSize()
  9. middley = y/2
  10. middlex = x/2
  11. holesize = 1
  12.  
  13. term.setCursorPos(middlex - holesize,middley + holesize)
  14.  
  15. write("/")
  16. for i=1,holesize do
  17. write("-")
  18. end
  19. print("\\")
  20.  
  21. prog = 0
  22. for i=1,holesize do
  23. setCursorPos(middlex - holesize,middley + holesize - prog)
  24. write("|")
  25. for i=1,holesize do
  26. write(" ")
  27. end
  28. wrute("|")
  29. prog = prog + 1
  30. end
  31.  
  32.  
  33.  
  34. term.setCursorPos(middlex - holesize,middley - holesize)
  35. write("/")
  36. for i=1,holesize do
  37. write("-")
  38. end
  39. print("\\")
  40. end
  41.  
  42. end
  43.  
  44. hole()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top