Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon1 = peripheral.wrap("monitor_99")
- mon2 = peripheral.wrap("monitor_100")
- mon3 = peripheral.wrap("monitor_101")
- local xcur1 , ycur1, xcur2, ycur2, xcur3, ycur3 = 1, 1, 1, 1, 1, 1
- mon1.setTextScale(3.5)
- mon2.setTextScale(3.5)
- mon3.setTextScale(3.5)
- local x1, y1 = mon1.getSize()
- local x2, y2 = mon2.getSize()
- local x3, y3 = mon3.getSize()
- --print(x1)
- --print(x2)
- --print(x3)
- while true do
- mon1.setBackgroundColor(colors.black)
- mon2.setBackgroundColor(colors.black)
- mon3.setBackgroundColor(colors.black)
- mon1.clear()
- mon2.clear()
- mon3.clear()
- if xcur1 <= x1 then
- mon1.setCursorPos(xcur1,1)
- mon1.setBackgroundColor(colors.yellow)
- mon1.write(" ")
- xcur1 = xcur1 + 1
- elseif xcur2 <= x2 then
- mon2.setCursorPos(xcur2,1)
- mon2.setBackgroundColor(colors.yellow)
- mon2.write(" ")
- xcur2 = xcur2 + 1
- elseif xcur3 <= x3 then
- mon3.setCursorPos(xcur3,1)
- mon3.setBackgroundColor(colors.yellow)
- mon3.write(" ")
- xcur3 = xcur3 + 1
- if xcur3 > x3 then
- xcur1 = 1
- xcur2 = 1
- xcur3 = 1
- end
- end
- sleep(0.1)
- end
Add Comment
Please, Sign In to add comment