Advertisement
superjaja05

XMAS LOOPER

Dec 20th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. tape = component.tape_drive
  3. term = require("term")
  4. gpu = component.gpu
  5.  
  6. term.clear()
  7. gpu.setForeground(0xffffff)
  8. gpu.setBackground(0x9933ff)
  9. gpu.setResolution(49,23)
  10. term.clear()
  11. term.setCursor(2,10)
  12. os.sleep(2)
  13. print("Merci d'avoir choisi L'autoLooper d'EnderCorpTM")
  14. os.sleep(1)
  15. term.setCursor(19,11)
  16. print("Lancement...")
  17. os.sleep(1)
  18. tape.setSpeed(2)
  19. os.sleep(1)
  20. tape.seek(-math.huge)
  21. tape.play()
  22. local i = 1
  23. repeat
  24.   term.clear()
  25.   gpu.setBackground(0x0000ff)
  26.   gpu.fill(1, 1, 49, 23, " ")
  27.   gpu.setBackground(0x9933ff)
  28.   gpu.fill(3, 2, 47, 22, " ")
  29.   term.setCursor(3,2)
  30.   print("played the music")
  31.   term.setCursor(20,2)
  32.   print( i )
  33.   term.setCursor(23,2)
  34.   print("time")
  35.   term.setCursor(35,22)
  36.   gpu.setForeground(0x66ffff)
  37.   print("Version 1.3.2")
  38.   tape.play()
  39.   os.sleep(339)
  40.   tape.seek(-math.huge)
  41.   i = i + 1
  42. until i == 150
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement