Advertisement
BigBlow_

Untitled

Apr 2nd, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. -- Tableau contenant les images du film
  2. local frames = {
  3. { " __ ", " / \\ ", "| () |", " \\__/ " },
  4. { " (()) ", "|/\u{203E}\\|", "(_/\\_)", " / \\ " },
  5. { " ", " (__) ", " /oo\\ ", " \\--/ " },
  6. { " ", " || ", " \\__/ ", " /$$\\ " },
  7. { " ", " ^^ ", " (oo) ", "(__)__)"},
  8. }
  9.  
  10. -- Fonction pour afficher une image sur l'écran
  11. local function displayFrame(frame)
  12. term.clear()
  13. term.setCursorPos(1, 1)
  14. for _, line in ipairs(frame) do
  15. print(line)
  16. end
  17. end
  18.  
  19. -- Boucle pour afficher chaque image du film
  20. while true do
  21. for _, frame in ipairs(frames) do
  22. displayFrame(frame)
  23. os.sleep(0.5)
  24. end
  25. end
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement