Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldPull = os.pullEvent;
- os.pullEvent = os.pullEventRaw;
- turtleid = 453
- term.setTextColour(colours.orange)
- term.clear()
- term.setCursorPos(1,1)
- print(" .,-:;//;:=,")
- print(" . :H@@@MM@M#H/.,+%;,")
- print(" ,/X+ +M@@M@MM%=,-%HMMM@X/,")
- print(" -+@MM; $M@@MH+-,;XMMMM@MMMM@+-")
- print(" ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.")
- print(" ,%MM@@MH ,@%= .---=-=:=,.")
- print(" =@#@@@MX., -%HX$$%%%:;")
- print(" =-./@M@M$ .;@MMMM@MM:")
- print(" X@/ -$MM/ Aperture . +MM@@@M$")
- print(" ,@@@MMX, Science /H- ;@M@M=")
- print(" .H@@@@M@+, Jukebox %MM+..%#$.")
- print(" /MMMM@MMH/. Loading 0% XM@MH; =;")
- print(" /%+%$XHH@$= , .H@@@@MX,")
- print(" .=--------. -%H.,@@@@@MX,")
- print(" .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.")
- print(" =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=")
- print(" =%@M@M#@$-.=$@MM@@@M; %M%=")
- print(" ,:+$+-,/H#MMMMMMM@= =,")
- write(" =++%%%%+/:-.")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 1% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 7% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 11% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 18% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 23% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 29% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 34% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 39% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 45% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 48% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 52% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 57% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 63% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 67% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 72% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 78% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 81% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 87% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loading 95% XM@MH; =;")
- sleep(0.5)
- term.setCursorPos(1,12)
- term.clearLine()
- print(" /MMMM@MMH/. Loaded 100% XM@MH; =;")
- sleep(2)
- term.setTextColour(colours.lime)
- term.clear()
- term.setCursorPos(1,1)
- print("GlaDoS 4.3 Successfuly booted")
- sleep(2)
- print("Loading music addon... [== ] 23%")
- sleep(0.5)
- term.setCursorPos(1,2)
- term.clearLine()
- function gg()
- term.setBackgroundColour(colours.green)
- term.setTextColour(colours.blue)
- end
- print("Loading music addon.. [==== ] 43%")
- sleep(0.5)
- term.setCursorPos(1,2)
- term.clearLine()
- print("Loading music addon... [====== ] 67%")
- sleep(0.5)
- term.setCursorPos(1,2)
- term.clearLine()
- function cc()
- term.setBackgroundColour(colours.cyan)
- term.setTextColour(colours.lime)
- end
- print("Loading music addon.. [======== ] 85%")
- sleep(0.5)
- term.setCursorPos(1,2)
- term.clearLine()
- print("Loading music addon... [========= ] 93%")
- sleep(0.5)
- function bl()
- term.setBackgroundColour(colours.blue)
- term.setTextColour(colours.lime)
- end
- term.setCursorPos(1,2)
- term.clearLine()
- print("Loaded music addon. [==========] 100%")
- sleep(2)
- print("Connecting to rednet... [== ] 22%")
- sleep(0.5)
- term.setCursorPos(1,3)
- term.clearLine()
- print("Connecting to rednet... [==== ] 43%")
- sleep(0.5)
- term.setCursorPos(1,3)
- term.clearLine()
- print("Connecting to rednet... [====== ] 67%")
- sleep(0.5)
- term.setCursorPos(1,3)
- term.clearLine()
- print("Connecting to rednet... [======== ] 85%")
- sleep(0.5)
- term.setCursorPos(1,3)
- term.clearLine()
- print("Connecting to rednet... [========= ] 93%")
- sleep(0.5)
- term.setCursorPos(1,3)
- term.clearLine()
- print("Connected to rednet. [==========] 100%")
- rednet.open("back")
- sleep(3)
- --GUI
- gg()
- term.clear()
- term.setCursorPos(1,1)
- print("+--------------------------------------------+----+")
- write("|")
- bl()
- write(" ")
- gg()
- write("|")
- cc()
- write(" ")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - 13 ")
- gg()
- write("|")
- cc()
- write("[00]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Cat ")
- gg()
- write("|")
- cc()
- write("[01]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Blocks ")
- gg()
- write("|")
- cc()
- write("[02]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Chirp ")
- gg()
- write("|")
- cc()
- write("[03]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Far ")
- gg()
- write("|")
- cc()
- write("[04]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Mall ")
- gg()
- write("|")
- cc()
- write("[05]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Mellohi ")
- gg()
- write("|")
- cc()
- write("[06]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Stal ")
- gg()
- write("|")
- cc()
- write("[07]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Strad ")
- gg()
- write("|")
- cc()
- write("[08]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" C418 - Ward ")
- gg()
- write("|")
- cc()
- write("[09]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" Valve - Still alive ")
- gg()
- write("|")
- cc()
- write("[10]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" Valve - Radio loop ")
- gg()
- write("|")
- cc()
- write("[11]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" Valve - Want you gone ")
- gg()
- write("|")
- cc()
- write("[12]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" Stop the current song ")
- gg()
- write("|")
- cc()
- write("[13]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" Shutdown the jukebox ")
- gg()
- write("|")
- cc()
- write("[14]")
- gg()
- write("|")
- print("")
- write("|")
- bl()
- write(" ")
- gg()
- write("|")
- cc()
- write(" ")
- gg()
- write("|")
- print("")
- write("+--------------------------------------------+----+")
- --Clicking and playing loop
- while true do
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if button == 1 then
- if xPos > 46 and xPos < 51 then
- if yPos > 2 and yPos < 16 then
- msg = yPos - 2
- msg = tostring(msg)
- rednet.send(turtleid,msg)
- elseif yPos == 16 then
- rednet.send(turtleid,"15")
- elseif yPos == 17 then
- rednet.send(turtleid,"15")
- os.shutdown()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement