southpole

Screensaver

Jul 7th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. --Simple-Screensaver by Southp0le
  2.  
  3. -----------
  4. --Options--
  5. -----------
  6. m = peripheral.wrap("left")
  7. m.setTextScale(1.5)
  8.  
  9. x,y=m.getSize()
  10. local time = os.time()
  11.  
  12.  
  13. ---------
  14. --Cycle--
  15. ---------
  16. while true do
  17.   randX = math.random(1,x-3)
  18.   randY = math.random(1,y)
  19.   m.setCursorPos(randX , randY)
  20.   m.write(textutils.formatTime(time,true))
  21.   sleep(2)
  22.   m.clear()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment