Advertisement
Guest User

Noticeboard

a guest
Jan 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. mon1 = peripheral.wrap("front") -- path side
  2. mon2 = peripheral.wrap("back") -- runway side
  3.  
  4. mon2.clear()
  5. mon1.clear()
  6.  
  7. mon2.setTextScale(1.6)
  8. mon2.setCursorPos(6,2)
  9. mon2.write("RUNWAY 1A")
  10.  
  11. function cwrite(text)
  12.   local maxw, maxh = mon1.getSize()
  13.   local curx,cury = mon1.getCursorPos()
  14.   mon1.setCursorPos((maxw-#text)/2,cury)
  15.   mon1.write(text)
  16.   mon1.setCursorPos(curx,cury+1)
  17. end
  18.  
  19. while true do
  20.   mon1.setCursorPos(1,3)
  21.   cwrite("  Sulna International Airport")
  22.   sleep(3)
  23.   mon1.clear()
  24.   mon1.setCursorPos(1,2)
  25.   cwrite("Terminal 1(A) Entrance")
  26.   mon1.setTextScale(1.4)
  27.   mon1.setCursorPos(1,4)
  28.   cwrite("<--------")
  29.   term.setCursorPos(1,5)
  30.   sleep(3)
  31.   mon1.clear()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement