SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local component = require("component") |
| 1 | + | local component = require("component")
|
| 2 | - | tape = component.tape_drive |
| 2 | + | tape = component.tape_drive |
| 3 | - | term = require("term") |
| 3 | + | term = require("term")
|
| 4 | - | gpu = component.gpu |
| 4 | + | gpu = component.gpu |
| 5 | - | |
| 5 | + | |
| 6 | - | term.clear() |
| 6 | + | term.clear() |
| 7 | - | gpu.setForeground(0xffffff) |
| 7 | + | gpu.setForeground(0xffffff) |
| 8 | - | gpu.setBackground(0x9933ff) |
| 8 | + | gpu.setBackground(0x9933ff) |
| 9 | - | gpu.setResolution(49,23) |
| 9 | + | gpu.setResolution(49,23) |
| 10 | - | term.clear() |
| 10 | + | term.clear() |
| 11 | - | term.setCursor(2,10) |
| 11 | + | term.setCursor(2,10) |
| 12 | - | os.sleep(2) |
| 12 | + | os.sleep(2) |
| 13 | - | print("Merci d'avoir choisi L'autoLooper d'EnderCorpTM") |
| 13 | + | print("Merci d'avoir choisi L'autoLooper d'EnderCorpTM")
|
| 14 | - | os.sleep(1) |
| 14 | + | os.sleep(1) |
| 15 | - | term.setCursor(19,11) |
| 15 | + | term.setCursor(19,11) |
| 16 | - | print("Lancement...") |
| 16 | + | print("Lancement...")
|
| 17 | - | os.sleep(1) |
| 17 | + | os.sleep(1) |
| 18 | - | tape.setSpeed(2) |
| 18 | + | tape.setSpeed(2) |
| 19 | - | os.sleep(1) |
| 19 | + | os.sleep(1) |
| 20 | - | tape.seek(-math.huge) |
| 20 | + | tape.seek(-math.huge) |
| 21 | - | tape.play() |
| 21 | + | tape.play() |
| 22 | - | local i = 1 |
| 22 | + | local i = 1 |
| 23 | - | repeat |
| 23 | + | repeat |
| 24 | - | term.clear() |
| 24 | + | term.clear() |
| 25 | - | term.setCursor(3,2) |
| 25 | + | gpu.setBackground(0x0000ff) |
| 26 | - | print("played the music") |
| 26 | + | gpu.fill(1, 1, 49, 23, " ") |
| 27 | - | term.setCursor(20,2) |
| 27 | + | gpu.setBackground(0x9933ff) |
| 28 | - | print( i ) |
| 28 | + | gpu.fill(3, 2, 47, 22, " ") |
| 29 | - | term.setCursor(23,2) |
| 29 | + | term.setCursor(3,2) |
| 30 | - | print("time") |
| 30 | + | print("played the music")
|
| 31 | - | term.setCursor(35,22) |
| 31 | + | term.setCursor(20,2) |
| 32 | - | gpu.setForeground(0x66ffff) |
| 32 | + | print( i ) |
| 33 | - | print("Version 1.3.2") |
| 33 | + | term.setCursor(23,2) |
| 34 | - | gpu.setBackground(0x0000ff) |
| 34 | + | print("time")
|
| 35 | - | gpu.fill(1, 1, 49, 23, " ") |
| 35 | + | term.setCursor(35,22) |
| 36 | - | gpu.setBackground(0x9933ff) |
| 36 | + | gpu.setForeground(0x66ffff) |
| 37 | - | gpu.fill(3, 2, 47, 22, " ") |
| 37 | + | print("Version 1.3.2")
|
| 38 | - | tape.play() |
| 38 | + | tape.play() |
| 39 | - | os.sleep(339) |
| 39 | + | os.sleep(339) |
| 40 | - | tape.seek(-math.huge) |
| 40 | + | tape.seek(-math.huge) |
| 41 | - | i = i + 1 |
| 41 | + | i = i + 1 |
| 42 | until i == 150 |