Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("back")
- local cPrint = function(text)
- local x, y = term.getSize()
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- print(text)
- end
- local cSlowPrint = function(text)
- local x, y = term.getSize()
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- textutils.slowPrint(text)
- end
- function playMovie(path)
- term.redirect(monitor)
- intro()
- shell.run("clear")
- shell.run(path)
- term.restore()
- end
- function intro()
- shell.run("clear")
- term.setCursorPos(5,3)
- write(" _ _ _ _ _ _ \n")
- term.setCursorPos(5,4)
- write(" /\\ \\ _ /\\ \\ /_/\\ /\\ \\ /\\_\\ / /\\ \n")
- term.setCursorPos(5,5)
- write(" / \\ \\ /\\_\\ / \\ \\\\ \\ \\ \\ \\_\\ / / / _ / / \\ \n")
- term.setCursorPos(5,6)
- write(" / /\\ \\ \\_/ / // /\\ \\ \\\\ \\ \\__/ / / \\ \\ \\__ /\\_\\ / / /\\ \\__ \n")
- term.setCursorPos(5,7)
- write(" / / /\\ \\___/ // / /\\ \\_\\\\ \\__ \\/_/ \\ \\___\\ / / // / /\\ \\___\\ \n")
- term.setCursorPos(5,8)
- write(" / / / \\/____// /_/_ \\/_/ \\/_/\\__/\\ \\__ / / / / \\ \\ \\ \\/___/ \n")
- term.setCursorPos(5,9)
- write(" / / / / / // /____/\\ _/\\/__\\ \\ / / / / / / \\ \\ \\ \n")
- term.setCursorPos(5,10)
- write(" / / / / / // /\\____\\/ / _/_/\\ \\ \\ / / / / / /_ \\ \\ \\ \n")
- term.setCursorPos(5,11)
- write(" / / / / / // / /______ / / / \\ \\ \\ / / /___/ / //_/\\__/ / / \n")
- term.setCursorPos(5,12)
- write("/ / / / / // / /_______\\ / / / /_/ // / /____\\/ / \\ \\/___/ / \n")
- term.setCursorPos(5,13)
- write("\\/_/ \\/_/ \\/__________/ \\/_/ \\_\\/ \\/_________/ \\_____\\/ \n")
- term.setCursorPos(5,14)
- print()
- print()
- print()
- cSlowPrint("Theaters")
- cSlowPrint("2012")
- print()
- sleep(0.5)
- cSlowPrint("Presents")
- sleep(2)
- end
- shell.run("clear")
- print("Movies: ")
- print("1; Starwars")
- print("2; Intro Only")
- print()
- print("V; Update")
- write("Selection: ")
- select = read()
- if select == "1" then
- playMovie("rom/programs/secret/alongtimeago")
- elseif select == "2" then
- term.redirect(monitor)
- intro()
- term.restore()
- elseif select == "V" then
- fs.delete("startup")
- shell.run("pastebin","get","tdpeRxXJ","startup")
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment