Advertisement
ProPiper

Time thingy?

May 18th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(47, 1)
  3. time = 16
  4. time2 = time-1
  5. time1 = time+1
  6. stateN = 1
  7.  
  8. for i = 1, 10 do
  9. if stateN == 1 then
  10. state = ':'
  11. end
  12. if stateN == 0 then
  13. state = ' '
  14. end
  15. result = tostring(time1)..state..tostring(time2)
  16. write(result)
  17. stateN = stateN - 1
  18. sleep(1)
  19. term.clearLine()
  20. term.setCursorPos(47, 1)
  21. result = tostring(time1)..state..tostring(time2)
  22. write(result)
  23. stateN = stateN + 1
  24. term.clearLine()
  25. term.setCursorPos(47, 1)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement