Advertisement
StStijn

Schermen boven podium

May 30th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.50 KB | None | 0 0
  1. -- ############### Instellingen ###############
  2. local monblauw = peripheral.wrap('monitor_3')
  3. local monrood = peripheral.wrap('monitor_1')
  4. local mongroen = peripheral.wrap('monitor_2')
  5. -- ############### / Instellingen ###############
  6.  
  7. -- ############### Startup Animatie ###############
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. term.setTextColor(colors.blue)
  11. print ("      ##    ##     ####     ##    ##   ######     ")
  12. print ("      ####  ##   ##    ##   ####  ##   ##  ##     ")
  13. print ("      ##  ####   ########   ##  ####   ##  ##     ")
  14. print ("      ##    ##   ##    ##   ##    ##   ##  ##     ")
  15. print ("      ##    ##   ##    ##   ##    ##   ######     ")
  16. --
  17. print (" ")
  18. --
  19. term.setTextColor(colors.red)
  20. print (" ########     ####    ##      ##   ######   ######")
  21. print (" ##         ##    ##  ####  ####   ##       ##    ")
  22. print (" ##  ####   ########  ##  ##  ##   ######   ######")
  23. print (" ##    ##   ##    ##  ##      ##   ##           ##")
  24. print (" ########   ##    ##  ##      ##   ######   ######")
  25. -- -- --
  26. os.sleep(5)
  27. --
  28. monblauw.clear()
  29. monrood.clear()
  30. mongroen.clear()
  31. os.sleep(2)
  32. monblauw.setBackgroundColor(colors.blue)
  33. monblauw.clear()
  34. os.sleep(0.5)
  35. monrood.setBackgroundColor(colors.red)
  36. monrood.clear()
  37. os.sleep(0.5)
  38. mongroen.setBackgroundColor(colors.green)
  39. mongroen.clear()
  40. os.sleep(2)
  41. --
  42. monblauw.setTextColor(colors.black)
  43. monblauw.setCursorPos(6,4)
  44. monblauw.setTextScale(5)
  45. monblauw.write ('Nano')
  46. --
  47. monrood.setTextColor(colors.black)
  48. monrood.setCursorPos(6,4)
  49. monrood.setTextScale(5)
  50. monrood.write ('Games')
  51. --
  52. mongroen.setTextColor(colors.black)
  53. mongroen.setCursorPos(6,4)
  54. mongroen.setTextScale(5)
  55. mongroen.write ('Network')
  56. -- -- --
  57. os.sleep(2)
  58. monblauw.setBackgroundColor(colors.black)
  59. monblauw.clear()
  60. monrood.setBackgroundColor(colors.black)
  61. monrood.clear()
  62. mongroen.setBackgroundColor(colors.black)
  63. mongroen.clear()
  64. --
  65. monblauw.setTextColor(colors.blue)
  66. monblauw.setCursorPos(6,4)
  67. monblauw.setTextScale(5)
  68. monblauw.write ('Nano')
  69. --
  70. monrood.setTextColor(colors.red)
  71. monrood.setCursorPos(6,4)
  72. monrood.setTextScale(5)
  73. monrood.write ('Games')
  74. --
  75. mongroen.setTextColor(colors.green)
  76. mongroen.setCursorPos(6,4)
  77. mongroen.setTextScale(5)
  78. mongroen.write ('Network')
  79. --
  80. os.sleep(2)
  81. monblauw.clear()
  82. monrood.clear()
  83. mongroen.clear()
  84. -- -- --
  85. term.clear()
  86. term.setCursorPos(1,1)
  87. term.setTextColor(colors.blue)
  88. term.write ('Nano')
  89. term.setTextColor(colors.red)
  90. term.write (' Games')
  91. term.setTextColor(colors.green)
  92. term.write (' Network')
  93. term.setCursorPos(1,2)
  94. -- -- --
  95. -- ############### Krijg redstone singnaal ###############
  96. -- ----------
  97. local Iside = "right" -- verander de zijde in welke kant je wilt checken
  98. -- ----------
  99. term.setTextColor(colors.yellow)
  100. print ("Dit programma wordt gestart")
  101. print ("door een redstone signaal.")
  102. term.setTextColor(colors.orange)
  103. print ("De ingestelde kant hiervoor is: "..Iside)
  104. --
  105. while true do
  106.   os.pullEvent("redstone")
  107.   if rs.getInput(""..Iside) then
  108.     break
  109.   end
  110. end
  111. -- ############### / Krijg redstone singnaal ###############
  112. -- ############### Programma uitvoering ###############
  113. monblauw.setTextColor(colors.blue)
  114. monblauw.setCursorPos(6,4)
  115. monblauw.setTextScale(5)
  116. monblauw.write ('Nano')
  117. --
  118. monrood.setTextColor(colors.red)
  119. monrood.setCursorPos(6,4)
  120. monrood.setTextScale(5)
  121. monrood.write ('Games')
  122. --
  123. mongroen.setTextColor(colors.green)
  124. mongroen.setCursorPos(6,4)
  125. mongroen.setTextScale(5)
  126. mongroen.write ('Network')
  127. -- ############### / Programma uitvoering ###############
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement