Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i = 1
- function activer()
- term.redirect(peripheral.wrap("back"))
- term.setBackgroundColor(colors.black)
- term.clear()
- images = paintutils.loadImage("testy"..tostring(i))
- paintutils.drawImage(images, 1, 1)
- if i == 2 then
- i = 1
- else
- i=i+1
- end
- end
- function eteind()
- term.redirect(peripheral.wrap("back"))
- term.setCursorPos(1, 1)
- term.clear()
- term.write("c'est eteind")
- end
- for k = 1, 999999999999999999999999999999999999999 do
- if rs.getInput("right") == true then
- sleep(3)
- repeat
- sleep(2.5)
- if rs.getInput("right") == true then
- activer()
- else
- eteind()
- end
- until i < 0
- k = 1
- else
- sleep(0.001)
- k = 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement