Advertisement
bennyuoppd

Minecraft CC music player!

Nov 22nd, 2012
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.34 KB | None | 0 0
  1. local oldPull = os.pullEvent;
  2. os.pullEvent = os.pullEventRaw;
  3. term.setTextColour(colours.orange)
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print("                  .,-:;//;:=,")
  7. print("               . :H@@@MM@M#H/.,+%;,")
  8. print("            ,/X+ +M@@M@MM%=,-%HMMM@X/,")
  9. print("          -+@MM; $M@@MH+-,;XMMMM@MMMM@+-")
  10. print("         ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.")
  11. print("       ,%MM@@MH ,@%=             .---=-=:=,.")
  12. print("       =@#@@@MX.,                -%HX$$%%%:;")
  13. print("      =-./@M@M$                   .;@MMMM@MM:")
  14. print("      X@/ -$MM/      Aperture      . +MM@@@M$")
  15. print("     .H@@@@M@+,      Science       %MM+..%#$.")
  16. print("      /MMMM@MMH/.                  XM@MH; =;")
  17. print("       /%+%$XHH@$=              , .H@@@@MX,")
  18. print("        .=--------.           -%H.,@@@@@MX,")
  19. print("        .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.")
  20. print("          =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=")
  21. print("            =%@M@M#@$-.=$@MM@@@M; %M%=")
  22. print("              ,:+$+-,/H#MMMMMMM@= =,")
  23. print("                    =++%%%%+/:-.")
  24. sleep(0.5)
  25. term.setCursorPos(1,11)
  26. term.clearLine()
  27. print("      /MMMM@MMH/.   Loading 1%     XM@MH; =;")
  28. sleep(0.5)
  29. term.setCursorPos(1,11)
  30. term.clearLine()
  31. print("      /MMMM@MMH/.   Loading 7%     XM@MH; =;")
  32. sleep(0.5)
  33. term.setCursorPos(1,11)
  34. term.clearLine()
  35. print("      /MMMM@MMH/.   Loading 11%    XM@MH; =;")
  36. sleep(0.5)
  37. term.setCursorPos(1,11)
  38. term.clearLine()
  39. print("      /MMMM@MMH/.   Loading 18%    XM@MH; =;")
  40. sleep(0.5)
  41. term.setCursorPos(1,11)
  42. term.clearLine()
  43. print("      /MMMM@MMH/.   Loading 23%    XM@MH; =;")
  44. sleep(0.5)
  45. term.setCursorPos(1,11)
  46. term.clearLine()
  47. print("      /MMMM@MMH/.   Loading 29%    XM@MH; =;")
  48. sleep(0.5)
  49. term.setCursorPos(1,11)
  50. term.clearLine()
  51. print("      /MMMM@MMH/.   Loading 34%    XM@MH; =;")
  52. sleep(0.5)
  53. term.setCursorPos(1,11)
  54. term.clearLine()
  55. print("      /MMMM@MMH/.   Loading 39%    XM@MH; =;")
  56. sleep(0.5)
  57. term.setCursorPos(1,11)
  58. term.clearLine()
  59. print("      /MMMM@MMH/.   Loading 45%    XM@MH; =;")
  60. sleep(0.5)
  61. term.setCursorPos(1,11)
  62. term.clearLine()
  63. print("      /MMMM@MMH/.   Loading 48%    XM@MH; =;")
  64. sleep(0.5)
  65. term.setCursorPos(1,11)
  66. term.clearLine()
  67. print("      /MMMM@MMH/.   Loading 52%    XM@MH; =;")
  68. sleep(0.5)
  69. term.setCursorPos(1,11)
  70. term.clearLine()
  71. print("      /MMMM@MMH/.   Loading 57%    XM@MH; =;")
  72. sleep(0.5)
  73. term.setCursorPos(1,11)
  74. term.clearLine()
  75. print("      /MMMM@MMH/.   Loading 63%    XM@MH; =;")
  76. sleep(0.5)
  77. term.setCursorPos(1,11)
  78. term.clearLine()
  79. print("      /MMMM@MMH/.   Loading 67%    XM@MH; =;")
  80. sleep(0.5)
  81. term.setCursorPos(1,11)
  82. term.clearLine()
  83. print("      /MMMM@MMH/.   Loading 72%    XM@MH; =;")
  84. sleep(0.5)
  85. term.setCursorPos(1,11)
  86. term.clearLine()
  87. print("      /MMMM@MMH/.   Loading 78%    XM@MH; =;")
  88. sleep(0.5)
  89. term.setCursorPos(1,11)
  90. term.clearLine()
  91. print("      /MMMM@MMH/.   Loading 81%    XM@MH; =;")
  92. sleep(0.5)
  93. term.setCursorPos(1,11)
  94. term.clearLine()
  95. print("      /MMMM@MMH/.   Loading 87%    XM@MH; =;")
  96. sleep(0.5)
  97. term.setCursorPos(1,11)
  98. term.clearLine()
  99. print("      /MMMM@MMH/.   Loading 95%    XM@MH; =;")
  100. sleep(0.5)
  101. term.setCursorPos(1,11)
  102. term.clearLine()
  103. print("      /MMMM@MMH/.   Loaded 100%    XM@MH; =;")
  104. sleep(2)
  105. term.setTextColour(colours.lime)
  106. term.clear()
  107. term.setCursorPos(1,1)
  108. print("GLaDOS 4.3 Successfuly booted")
  109. sleep(2)
  110. write("Loading music addons... ")
  111. textutils.slowWrite("================= ",2)
  112. write("Loaded.")
  113. sleep(1)
  114.  
  115. while true do
  116. term.clear()
  117. term.setCursorPos(1,1)
  118. term.setTextColour(colours.lime)
  119. print("Pick an option:")
  120. print("Aperture radio [0]")
  121. print("Still alive    [1]")
  122. print("Want you gone  [2]")
  123. print("Shutdown       [3]")
  124. write("What would you like?: ")
  125. input = read()
  126. if input == "0" then
  127. term.setTextColour(colours.orange)
  128. disk.playAudio("top")
  129. print("")
  130. print("Now playing: Valve - Radio loop")
  131. print("Enjoy!")
  132. sleep(5)
  133. elseif input == "1" then
  134. term.setTextColour(colours.orange)
  135. disk.playAudio("left")
  136. print("")
  137. print("Now playing: Valve - Still alive")
  138. print("Enjoy!")
  139. sleep(5)
  140. elseif input == "2" then
  141. term.setTextColour(colours.orange)
  142. disk.playAudio("right")
  143. print("")
  144. print("Now playing: Valve - Want you gone")
  145. print("Enjoy!")
  146. sleep(5)
  147. elseif input == "3" then
  148. break
  149. else
  150. print("Sorry, you have not been understood")
  151. sleep(3)
  152. end
  153. end
  154. print("Goodbye.")
  155. disk.stopAudio()
  156. sleep(3)
  157. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement