sibomots

Untitled

Jul 3rd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. -- Copyright 2013 Jeff Wandling
  2. -- Geometric Enthusiasm MC
  3.  
  4. function kon()
  5. term.setCursorPos(0,0)
  6. setTextColor( colors.lime )
  7. print(".###..##.....")
  8. print("..#...#...........")
  9. print("..#..#..................")
  10. print("..#..#....#####..##.##..")
  11. print("..#.#....#.....#..##..#.")
  12. print("..###....#.....#..#...#.")
  13. print("..#..#...#.....#..#...#.")
  14. print("..#...#..#.....#..#...#.")
  15. print(".###..##..#####..###.###")
  16. setTextColor( colors.cyan )
  17. print("..")
  18. print(".... Hijo ni yoi arigato")
  19. end
  20.  
  21.  
  22. function spewfill()
  23.  
  24. local x = 0
  25. local y = 0
  26. local w, h = term.getSize()
  27.  
  28. local ch = { "!", "~", " ", "|", ".",
  29. " ", "_", "$" }
  30. local cl = { colors.white, colors.lightBlue, colors.lime, colors.gray, colors.lightGray,
  31. colors.green, colors.black }
  32. term.setCursorPos(0,0)
  33.  
  34. for y = 0, h-1 do
  35. for x = 0, w-1 do
  36. term.setTextColor( cl[math.random(1,7)] )
  37. term.write( ch[math.random(1,8)] )
  38. end
  39. print("")
  40. end
  41.  
  42. end
  43.  
  44.  
  45. function spewupdate()
  46. local w, h = term.getSize()
  47. local y = 0
  48. local x = 0
  49. local ch = { "!", "~", " ", "|",
  50. ".", " ", "_", "$" }
  51. local cl = { colors.white, colors.lightBlue,
  52. colors.lime, colors.gray,
  53. colors.lightGray,
  54. colors.green,
  55. colors.black }
  56. term.setCursorPos(0,0)
  57. local r = math.random(0, w-1)
  58. local th = math.random(0, h-1)
  59. local thh = math.random(th, h-1)
  60. for y = th, thh do
  61. term.setCursorPos(r, y)
  62. term.setTextColor( colors.lightGray)
  63. term.write("#")
  64. os.sleep(0.050)
  65. term.setTextColor( colors.white)
  66. term.setCursorPos(r, y)
  67. term.write("_")
  68. os.sleep(0.050)
  69. term.setCursorPos(r, y)
  70. term.setTextColor( cl[math.random(1,7)] )
  71. term.write( ch[math.random(1,8)] )
  72. end
  73. end
  74.  
  75.  
  76. spewfill()
  77. local w
  78. for w = 0, 2 do
  79. spewupdate()
  80. end
Advertisement
Add Comment
Please, Sign In to add comment