Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mside = "top"
- local xMax,yMax = mon.getSize()
- 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}
- 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}
- function animation()
- for f = 1,#xPos do
- mon.setTextColor(colors.white)
- mon.setCursorPos(xPos[p],yPos[p])
- mon.write(".")
- end
- for p = 1,#xPos do
- mon.setCursorPos(xPos[p],yPos[p])
- mon.setTextColor(colors.gray)
- mon.write(".")
- sleep(.5)
- end
- end
- while true do
- animation()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement