LivioBrunner

Moon Base

Oct 12th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2. mon.setTextScale(1)
  3. while true do
  4. mon.clear()
  5. mon.setCursorPos(1,1)
  6. if rs.getInput("left") then
  7. for i = 0,1 do
  8. rs.setBundledOutput("bottom", colors.green)
  9. sleep(0.5)
  10. rs.setBundledOutput("bottom", 0)
  11. sleep(0.5)
  12. end
  13.  
  14. mon.setTextColor(colors.orange)
  15. mon.write("Tank fåBCllt sich mit Sauerstoff")
  16. sleep(5)
  17. for i = 0,1 do
  18. rs.setBundledOutput("bottom", colors.white)
  19. sleep(0.5)
  20. rs.setBundledOutput("bottom", 0)
  21. sleep(0.5)
  22. end
  23. mon.setTextColor(colors.red)
  24. for i = 0,100, 10 do
  25. mon.setCursorPos(6,2)
  26. if i > 30 then
  27. mon.setTextColor(colors.orange)
  28. end
  29. if i > 60 then
  30. mon.setTextColor(colors.green)
  31. end
  32. mon.write(i.."% voll")
  33. sleep(0.5)
  34. end
  35. mon.setCursorPos(1,1)
  36. mon.clearLine()
  37. mon.setTextColor(colors.orange)
  38. mon.write("Sie koennen ihren Helm ablegen")
  39. for i = 0, 1 do
  40. rs.setBundledOutput("bottom", colors.yellow)
  41. sleep(0.5)
  42. rs.setBundledOutput("bottom", 0)
  43. sleep(0.5)
  44. end
  45. sleep(5)
  46. for i = 0, 1 do
  47. rs.setBundledOutput("bottom", colors.black)
  48. sleep(0.5)
  49. rs.setBundledOutput("bottom", 0)
  50. sleep(0.5)
  51. end
  52. --RIGHT
  53. elseif rs.getInput("right")
  54. for i = 0,1 do
  55. rs.setBundledOutput("bottom", colors.yellow)
  56. sleep(0.5)
  57. rs.setBundledOutput("bottom", 0)
  58. sleep(0.5)
  59. end
  60.  
  61. mon.setTextColor(colors.orange)
  62. mon.write("Setzen Sie Ihren Helm auf")
  63. sleep(5)
  64. for i = 0,1 do
  65. rs.setBundledOutput("bottom", colors.black)
  66. sleep(0.5)
  67. rs.setBundledOutput("bottom", 0)
  68. sleep(0.5)
  69. end
  70. mon.setTextColor(colors.red)
  71. for i = 100,0,-10 do
  72. mon.setCursorPos(6,2)
  73. if i > 30 then
  74. mon.setTextColor(colors.orange)
  75. end
  76. if i > 60 then
  77. mon.setTextColor(colors.green)
  78. end
  79. mon.write(i.."% voll")
  80. sleep(0.5)
  81. end
  82. mon.setCursorPos(1,1)
  83. mon.clearLine()
  84. mon.setTextColor(colors.orange)
  85. mon.write("Viel Spass auf dem Mond")
  86. for i = 0, 1 do
  87. rs.setBundledOutput("bottom", colors.green)
  88. sleep(0.5)
  89. rs.setBundledOutput("bottom", 0)
  90. sleep(0.5)
  91. end
  92. sleep(5)
  93. for i = 0, 1 do
  94. rs.setBundledOutput("bottom", colors.white)
  95. sleep(0.5)
  96. rs.setBundledOutput("bottom", 0)
  97. sleep(0.5)
  98. end
  99. end
  100. sleep(0.1)
  101. end
Advertisement
Add Comment
Please, Sign In to add comment