Advertisement
Guest User

load

a guest
Jul 28th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. catx = 38
  2. caty = 8
  3. while true do
  4. term.clear()
  5. term.setBackgroundColor(colors.black)
  6. function reload()
  7. term.clear()
  8. paintutils.drawPixel(catx, caty, colors.brown)
  9. for i = 4, 12 do
  10. term.setBackgroundColor(colors.black)
  11. term.setCursorPos(1, i)
  12. print("I")
  13. end
  14. for i2 = 4, 12 do
  15. term.setBackgroundColor(colors.black)
  16. term.setCursorPos(39, i2)
  17. print("I")
  18. end
  19. end
  20. reload()
  21. if catx > 2 then
  22. sleep(0.04)
  23. catx = catx - 1
  24. term.setBackgroundColor(colors.black)
  25. reload()
  26. term.setBackgroundColor(colors.black)
  27. elseif catx == 2 then
  28. for i3 = 1, 38 do
  29. sleep(0.04)
  30. catx = catx + 1
  31. term.setBackgroundColor(colors.black)
  32. reload()
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement