Advertisement
Nike622000

laden

Oct 28th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. local Mside     = "top"
  2. local xMax,yMax = mon.getSize()
  3.  
  4. xPos = {xMax/2-1,xMax/2-1,xMax/2-1,xMax/2+1,xMax/2+1,xMax/2+1,xMax/2-1,xMax/2  ,xMax/2+1,xMax/2-1,xMax/2  ,xMax/2+1}
  5. yPos = {yMax/2-1,yMax/2  ,yMax/2+1,yMax/2-1,yMax/2  ,yMax/2+1,yMax/2-1,yMax/2-1,yMax/2-1,yMax/2+1,yMax/2+1,yMax/2+1}
  6.  
  7. function animation()
  8.     for f = 1,#xPos do
  9.         mon.setTextColor(colors.white)
  10.         mon.setCursorPos(xPos[p],yPos[p])
  11.         mon.write(".")
  12.     end
  13.     for p = 1,#xPos do
  14.         mon.setCursorPos(xPos[p],yPos[p])
  15.         mon.setTextColor(colors.gray)
  16.         mon.write(".")
  17.         sleep(.5)
  18.     end
  19. end
  20.  
  21. while true do
  22.     animation()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement