Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Functions--
- function gameListExit()
- local gle = read()
- if gle ~= "1" then
- gameList()
- else
- startUp()
- end
- end
- function gameList()
- term.clear()
- term.setCursorPos(1, 2)
- print("0-----0------------------0")
- term.setCursorPos(1, 3)
- print(":Games: :")
- term.setCursorPos(1, 4)
- print("0-----0------------------0")
- term.setCursorPos(1, 5)
- print("0------------------------0")
- term.setCursorPos(1, 6)
- print(": No Games Yet :")
- term.setCursorPos(1, 7)
- print("0------------------------0")
- term.setCursorPos(1, 8)
- print(": 1-Exit :")
- term.setCursorPos(1, 9)
- print("0------------------------0")
- term.setCursorPos(9, 3)
- gameListExit()
- end
- function commandGames()
- local gc = read()
- if gc ~= "2" then
- startUp()
- else
- gameList()
- end
- end
- function commandExit()
- local ec = read()
- if ec ~= "1" then
- startUp()
- else
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- function startUp()
- term.clear()
- term.setCursorPos(1, 2)
- print("0----------------0---------0")
- term.setCursorPos(1, 3)
- print(": Welcome to : Remember:")
- term.setCursorPos(1, 4)
- print(": SciOS v0.3 : to Copy :")
- term.setCursorPos(1, 5)
- print("0----------------0 Over to :")
- term.setCursorPos(1, 6)
- print(": : Startup :")
- term.setCursorPos(1, 7)
- print("0---------0----------0-----0")
- term.setCursorPos(1, 8)
- print(":A1,1-Term:A2,2-Games:")
- term.setCursorPos(1, 9)
- print("0---------0----------0")
- term.setCursorPos(2, 6)
- local t = read()
- if t == "A1" then
- term.setCursorPos(4, 6)
- commandExit()
- elseif t == "A2" then
- term.setCursorPos(4, 6)
- commandGames()
- end
- end
- --Start of OS--
- startUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement