Advertisement
Guest User

startup

a guest
Feb 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. mon = peripheral.wrap("right")
  2. term.redirect(mon)
  3.  
  4. local x, y
  5. pos = 18
  6.  
  7. function Clear()
  8.   mon.clear()
  9.   term.clear()
  10.  
  11.   mon.setBackgroundColor(colors.black)
  12.   term.setBackgroundColor(colors.black)
  13. end  
  14.  
  15. function Draw()
  16.   term.setCursorPos(6,1)
  17.   mon.setTextScale(2)
  18.   term.write("Bienvenue Cher")  
  19.   term.setCursorPos(3,2)
  20.   term.write("dada2697 et oxonico33")
  21. end
  22.  
  23. function Term()
  24.  
  25.   while true do
  26.  
  27.     --event,side,xpos,ypos = os.pullEvent("monitor_touch")
  28.     --print(xpos.." | "..ypos)
  29.     if pos == -25 then
  30.       pos = 18
  31.     end
  32.    
  33.     mon.clear()
  34.     mon.setCursorPos(pos,4)
  35.     mon.write("Oxonico33 et Dada2967")
  36.     sleep(1)
  37.     pos = pos-1
  38.     Draw()
  39.    
  40.   end
  41.  
  42. end
  43.  
  44. Term()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement