Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- mon.clear()
- mon.setTextScale(1.5)
- mon.setCursorPos(2,1)
- mon.write("Vilager")
- mon.setCursorPos(2,3)
- mon.write("Well of Suffering")
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- if x > 1 and x < 9 and y == 1 and rs.getOutput("left") == false then
- rs.setOutput("left",true)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Vilager","0000000","ddddddd")
- elseif x > 1 and x < 9 and y == 1 and rs.getOutput("left") == true then
- rs.setOutput("left",false)
- mon.setCursorPos(2,1)
- mon.clearLine()
- mon.blit("Vilager","0000000","eeeeeee")
- elseif x > 1 and x < 19 and y == 3 and rs.getOutput("right") == false then
- rs.setOutput("right",true)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Well of Suffering","00000000000000000","ddddddddddddddddd")
- elseif x > 1 and x < 19 and y == 3 and rs.getOutput("right") == true then
- rs.setOutput("right",false)
- mon.setCursorPos(2,3)
- mon.clearLine()
- mon.blit("Well of Suffering","00000000000000000","eeeeeeeeeeeeeeeee")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement