Advertisement
Guest User

flip

a guest
Aug 23rd, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. m=peripheral.wrap("right")
  2. old=term.redirect(m)
  3.  
  4. w,h=term.getSize()
  5.  
  6. local fy=paintutils.loadImage("fuckyou")
  7.  
  8. function clr()
  9. term.setBackgroundColor(1)
  10. term.clear()
  11. for i1=0,math.ceil(h/7) do
  12. for i2=0,math.ceil(w/36) do
  13. paintutils.drawImage(fy,i2*36,i1*7)
  14. end
  15. end
  16. term.setCursorPos(1,1)
  17. end
  18.  
  19. local slot=1
  20.  
  21. local x=w/2-9
  22. local y=h/2
  23.  
  24. while true do
  25. os.sleep(0.1)
  26. if slot<3 or slot>4 then
  27. os.sleep(0.1)
  28. end
  29. clr()
  30. paintutils.drawImage(paintutils.loadImage("flip"..slot),x,y)
  31. slot=slot+1
  32. if slot>6 then
  33. local ss=paintutils.loadImage("stopSign")
  34. paintutils.drawImage(ss,5,4)
  35. paintutils.drawImage(ss,w-28,4)
  36. os.sleep(2)
  37. slot=1
  38. end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement