Advertisement
Guest User

autorun.lua

a guest
Dec 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  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.   term.setCursor(3,2)
  26.   print("played the music")
  27.   term.setCursor(20,2)
  28.   print( i )
  29.   term.setCursor(23,2)
  30.   print("time")
  31.   term.setCursor(35,22)
  32.   gpu.setForeground(0x66ffff)
  33.   print("Version 1.3.2")
  34.   gpu.setBackground(0x0000ff)
  35.   gpu.fill(1, 1, 49, 23, " ")
  36.   gpu.setBackground(0x9933ff)
  37.   gpu.fill(3, 2, 47, 22, " ")
  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