Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --ZIRCONIO (C) LEGO11 2018
- function clr()
- term.clear()
- term.setCursorPos(1,1)
- end
- clr()
- if term.isColor() == false then
- error("Scheda grafica a colori EGA richiesta.")
- end
- function colore(sfumatura)
- term.setTextColour(sfumatura)
- end
- function sfondo(sfumaturaSfondo)
- term.setBackgroundColour(sfumaturaSfondo)
- end
- colore(colours.lime)
- print("\n")
- --[[textutils.slowWrite(" 88888888888888888888888\n")
- textutils.slowWrite(" 88 888\n")
- textutils.slowWrite(" 88 888\n")
- textutils.slowWrite(" 88 888\n")
- textutils.slowWrite(" 88 88\n")
- textutils.slowWrite(" 88888888888888888888888888888\n")
- ]]--
- print("")
- print(" ___ ___ _____ _____ ___ ")
- print(" | \\/ || ___/ ___|/ _ \\ ")
- print(" | . . || |__ \\ --./ /_\\ \\ ")
- print(" | |\\/| || __| \\--. \\ _ |")
- print(" | | | || |___/\\__/ / | | |")
- print(" \\_| |_/\\____/\\____/\\_| |_/")
- print("")
- print("")
- colore(colours.white)
- textutils.slowWrite(" P R E S E N T A :\n")
- sleep(3)
- clr()
- colore(colours.yellow)
- print(" ______ _ ________")
- print(" |__ (_)_ __ ___ ___ _ __ (_) ___ | 40 |")
- print(" / /| | '__/ __/ _ \\| '_ \\| |/ _ \\ | Zr |")
- print(" / /_| | | | (_| (_) | | | | | (_) | | 91.224 |")
- print(" /____|_|_| \\___\\___/|_| |_|_|\\___/ |________|")
- print("Versione 1.0")
- print("\n")
- sfondo(colours.white)
- colore(colours.black)
- print("Nuova partita")
- print("")
- print("Carica partita")
- print("")
- print("Esci")
- print("")
- term.setCursorPos(1,19)
- colore(colours.white)
- sfondo(colours.black)
- term.write("Copyright (C) 2018 MESA Development/lego11")
- loop = true
- while loop == true do
- event, key, x, y = os.pullEvent()
- if event == "mouse_click" and y == 9 then
- loop = false
- nuovoGioco = true
- esci = false
- elseif event == "mouse_click" and y == 11 then
- loop = false
- nuovoGioco = false
- esci = false
- elseif event == "mouse_click" and y == 13 then
- clr()
- esci = true
- end
- end
- if nuovoGioco == true and esci == false then
- clr()
- if fs.exists("/disk/SAVEGAME") = true then
- print("File di salvataggio già esistente!")
- print("Sovrascriverlo oppure caricare la partita?\n")
- sfondo(colours.white)
- colore(colours.black)
- term.write("Sovrascrivi")
- term.setCursorPos(10,4)
- term.write("Carica salvataggio")
- loop = true
- while loop == true do
- event, key, x, y = os.pullEvent()
- if event == "mouse_click" and X < 9 and y == 4 then
- loop = false
- sovrascrivi = true
- elseif event == "mouse_click" and X > 10 and y == 4 then
- loop = false
- sovrascrivi = false
- end
- if sovrascrivi == true then
- fs.delete("/disk/SAVEGAME")
- end
- end
- if nuovoGioco == false and esci == false then
- clr()
- print("Vecchio gioco")
- sleep(3)
- end
- clr()
- print("arrivederci")
Advertisement
Add Comment
Please, Sign In to add comment