SHOW:
|
|
- or go back to the newest paste.
| 1 | --Code by djbigmac9 and 007spy9 | |
| 2 | --This game show will be streamed over at: | |
| 3 | --www.twitch.tv/kreeper_killerz | |
| 4 | --www.youtube.com/TheKreeperKillerz | |
| 5 | ||
| 6 | - | monitors = {
|
| 6 | + | mon1 = peripheral.wrap("monitor_0")
|
| 7 | - | peripheral.wrap("monitor_0");
|
| 7 | + | mon2 = peripheral.wrap("monitor_3")
|
| 8 | - | peripheral.wrap("monitor_1");
|
| 8 | + | mon3 = peripheral.wrap("monitor_4")
|
| 9 | - | peripheral.wrap("monitor_2");
|
| 9 | + | mon4 = peripheral.wrap("monitor_7")
|
| 10 | - | peripheral.wrap("monitor_3");
|
| 10 | + | |
| 11 | - | peripheral.wrap("monitor_4");
|
| 11 | + | mon1.setBackgroundColor(colors.blue) |
| 12 | - | peripheral.wrap("monitor_5");
|
| 12 | + | mon2.setBackgroundColor(colors.blue) |
| 13 | - | peripheral.wrap("monitor_6");
|
| 13 | + | mon3.setBackgroundColor(colors.blue) |
| 14 | - | peripheral.wrap("monitor_7");
|
| 14 | + | mon4.setBackgroundColor(colors.blue) |
| 15 | - | } |
| 15 | + | |
| 16 | mon1.setTextColor(colors.yellow) | |
| 17 | - | function allMonitors() |
| 17 | + | mon2.setTextColor(colors.yellow) |
| 18 | - | for i=1,#monitors do |
| 18 | + | mon3.setTextColor(colors.yellow) |
| 19 | - | monitors[i].setBackgroundColor(colors.blue) |
| 19 | + | mon4.setTextColor(colors.yellow) |
| 20 | - | monitors[i].setTextColor(colors.yellow) |
| 20 | + | |
| 21 | mon1.setCursorPos(6,4.5) | |
| 22 | - | monitors[i].setTextScale(5) |
| 22 | + | mon2.setCursorPos(6,4.5) |
| 23 | - | sleep(55) |
| 23 | + | mon3.setCursorPos(6,4.5) |
| 24 | - | monitors[i].clear() |
| 24 | + | mon4.setCursorPos(6,4.5) |
| 25 | - | monitors[i].write("5")
|
| 25 | + | |
| 26 | - | sleep(1) |
| 26 | + | mon1.setTextScale(5) |
| 27 | - | monitors[i].clear() |
| 27 | + | mon2.setTextScale(5) |
| 28 | mon3.setTextScale(5) | |
| 29 | - | monitors[i].write("4")
|
| 29 | + | mon4.setTextScale(5) |
| 30 | - | sleep(1) |
| 30 | + | |
| 31 | - | monitors[i].clear() |
| 31 | + | sleep(55) |
| 32 | ||
| 33 | - | monitors[i].write("3")
|
| 33 | + | mon1.clear() |
| 34 | - | sleep(1) |
| 34 | + | mon2.clear() |
| 35 | - | monitors[i].clear() |
| 35 | + | mon3.clear() |
| 36 | mon4.clear() | |
| 37 | - | monitors[i].write("2")
|
| 37 | + | |
| 38 | - | sleep(1) |
| 38 | + | mon1.write("5")
|
| 39 | - | monitors[i].clear() |
| 39 | + | mon2.write("5")
|
| 40 | mon3.write("5")
| |
| 41 | - | monitors[i].write("1")
|
| 41 | + | mon4.write("5")
|
| 42 | - | sleep(1) |
| 42 | + | |
| 43 | - | monitors[i].clear() |
| 43 | + | sleep(1) |
| 44 | ||
| 45 | - | monitors[i].write("FINISH")
|
| 45 | + | mon1.clear() |
| 46 | - | end |
| 46 | + | mon2.clear() |
| 47 | - | end |
| 47 | + | mon3.clear() |
| 48 | - | allMonitors() |
| 48 | + | mon4.clear() |
| 49 | ||
| 50 | mon1.setCursorPos(6,4.5) | |
| 51 | mon2.setCursorPos(6,4.5) | |
| 52 | mon3.setCursorPos(6,4.5) | |
| 53 | mon4.setCursorPos(6,4.5) | |
| 54 | ||
| 55 | mon1.write("4")
| |
| 56 | mon2.write("4")
| |
| 57 | mon3.write("4")
| |
| 58 | mon4.write("4")
| |
| 59 | ||
| 60 | sleep(1) | |
| 61 | ||
| 62 | mon1.clear() | |
| 63 | mon2.clear() | |
| 64 | mon3.clear() | |
| 65 | mon4.clear() | |
| 66 | ||
| 67 | mon1.setCursorPos(6,4.5) | |
| 68 | mon2.setCursorPos(6,4.5) | |
| 69 | mon3.setCursorPos(6,4.5) | |
| 70 | mon4.setCursorPos(6,4.5) | |
| 71 | ||
| 72 | mon1.write("3")
| |
| 73 | mon2.write("3")
| |
| 74 | mon3.write("3")
| |
| 75 | mon4.write("3")
| |
| 76 | ||
| 77 | sleep(1) | |
| 78 | ||
| 79 | mon1.clear() | |
| 80 | mon2.clear() | |
| 81 | mon3.clear() | |
| 82 | mon4.clear() | |
| 83 | ||
| 84 | monitors[i].setCursorPos(6,4.5) | |
| 85 | ||
| 86 | mon1.write("2")
| |
| 87 | mon2.write("2")
| |
| 88 | mon3.write("2")
| |
| 89 | mon4.write("2")
| |
| 90 | ||
| 91 | sleep(1) | |
| 92 | ||
| 93 | mon1.clear() | |
| 94 | mon2.clear() | |
| 95 | mon3.clear() | |
| 96 | mon4.clear() | |
| 97 | ||
| 98 | mon1.setCursorPos(6,4.5) | |
| 99 | mon2.setCursorPos(6,4.5) | |
| 100 | mon3.setCursorPos(6,4.5) | |
| 101 | mon4.setCursorPos(6,4.5) | |
| 102 | ||
| 103 | mon1.write("1")
| |
| 104 | mon2.write("1")
| |
| 105 | mon3.write("1")
| |
| 106 | mon4.write("1")
| |
| 107 | ||
| 108 | sleep(1) | |
| 109 | ||
| 110 | mon1.clear() | |
| 111 | mon2.clear() | |
| 112 | mon3.clear() | |
| 113 | mon4.clear() | |
| 114 | ||
| 115 | mon1.setCursorPos(6,4.5) | |
| 116 | mon2.setCursorPos(6,4.5) | |
| 117 | mon3.setCursorPos(6,4.5) | |
| 118 | mon4.setCursorPos(6,4.5) | |
| 119 | ||
| 120 | mon1.write("FINISH")
| |
| 121 | mon2.write("FINISH")
| |
| 122 | mon3.write("FINISH")
| |
| 123 | mon4.write("FINISH")
| |
| 124 | ||
| 125 | rs.setOutput("right",true)
| |
| 126 | ||
| 127 | sleep(0.5) | |
| 128 | ||
| 129 | rs.setOutput("right",false) |