Microstar301

FAHRSTUHL CLIENT

Apr 23rd, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1.    
  2.  
  3.     --Fstuhl v0.1
  4.      
  5.     --PC ID VOM SERVER
  6.     PCIDSER=0
  7.      
  8.     -- U I
  9.     term.setBackgroundColor(colors.blue)
  10.     term.setTextColor(colors.red)
  11.     term.clear()
  12.     term.setCursorPos(1,1)
  13.     print("   #   ")
  14.     print("  ###  ")
  15.     print(" # # # ")
  16.     print("   #   ")
  17.     print("   #   ")
  18.     print("       ")
  19.     term.setTextColor(colors.blue)
  20.     term.setBackgroundColor(colors.red)
  21.     print("       ")
  22.     print("   #   ")
  23.     print("   #   ")
  24.     print(" # # # ")
  25.     print("  ###  ")
  26.     write("   #   ")
  27.     while true do
  28.     e,k,x,y=os.pullEvent("monitor_touch")
  29.     if x>0 and x<8 and y>0 and y<7 then
  30.     rs.setOutput("left",true)
  31.     --rednet.send(PCIDSER,"UP")
  32.     end
  33.     if x>0 and x<8 and y>6 and y<13 then
  34.     --rednet.send(PCIDSER,"DOWN")
  35.     rs.setOutput("left",false)
  36.     end
  37.     end
Advertisement
Add Comment
Please, Sign In to add comment