NMDanny

Untitled

Jul 11th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. local mon=peripheral.wrap("right")
  2. mon.clear()
  3. local name="nobody"
  4.  
  5. while true do
  6.     mon.clear()
  7.     mon.setCursorPos(1,1)
  8.     mon.setBackgroundColor(colors.yellow)
  9.     mon.write("Faggot tester mk1")
  10.    
  11.     mon.setTextScale(.5)
  12.     mon.setCursorPos(1,2)
  13.     mon.setBackgroundColor(colors.black)
  14.     mon.write("Welcome to the faggot tester.")
  15.     mon.setCursorPos(1,3)
  16.     mon.write("Press the button to test yourself for faggotry.")
  17.    
  18.    
  19.     mon.setBackgroundColor(colors.red)
  20.     mon.setCursorPos(3,7)
  21.     mon.write("               ") -- from 3,7 to 5,10
  22.     mon.setCursorPos(3,8)
  23.     mon.write("               ")
  24.     mon.setCursorPos(3,9)
  25.     mon.write("               ")
  26.     mon.setCursorPos(3,10)
  27.    
  28.     mon.setBackgroundColor(colors.black)
  29.    
  30.     local event,side,x,y=os.pullEvent("monitor_touch")
  31.     if x>=3 and x<=5 and y>=7 and y<=10 then
  32.         term.print(event.." "..side.." "..x.." "..y)
  33.         mon.setCursorPos(3,15)
  34.         mon.setTextScale(1)
  35.         mon.write("You are a faggot!")
  36.     end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment