Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Sorry about the messy code
- -- DO NOT STEAL, YOU MAY ONLY LOOK AT THE CODE FOR EDUCATIONAL PURPOSES! //by ComputerCraftFan1
- -- Programs
- startmenu = "Start"
- games = "Games"
- commandprompt = "CMD"
- -- Games
- -- CommandPrompt Commands
- clear = "C:CMD>CLS"
- function Winderp()
- print("+----------------------+")
- print("| |")
- print("| |")
- print("| |")
- print("| |")
- print("| |")
- print("| |")
- print("+----------------------+")
- print("|Start| |")
- print("+----------------------+")
- WinderpPrograms()
- end
- function WinderpStart()
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| |")
- print("|-----+ |")
- print("|Games| |")
- print("|CMD | |")
- print("| | |")
- print("| | |")
- print("+----------------------+")
- print("|Start| |")
- print("+----------------------+")
- WinderpProgramsStart()
- end
- function WinderpGames()
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| |")
- print("| +-----Game-----+ |")
- print("| |Worm | |")
- print("| | | |")
- print("| | | |")
- print("| +--------------+ |")
- print("+----------------------+")
- print("|Start|Game| |")
- print("+----------------------+")
- WinderpProgramsGame()
- end
- function WinderpGamesStart() --Multitask
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| |")
- print("|-----+---Game-----+ |")
- print("|Games|rm | |")
- print("|CMD | | |")
- print("| | | |")
- print("| |------------+ |")
- print("+----------------------+")
- print("|Start|Game| |")
- print("+----------------------+")
- WinderpProgramsStart()
- end
- function WinderpCMD()
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| +C:WinCraft--------+ |")
- print("| |Microcraft Win [V1| |")
- print("| | | |")
- print("| |C:CMD> | |")
- print("| | | |")
- print("| +------------------+ |")
- print("+----------------------+")
- print("|Start|CMD| |")
- print("+----------------------+")
- WinderpCommandPrompt()
- end
- function WinderpStartCMD()
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| +C:WinCraft--------+ |")
- print("|-----+ocraft Win [V1| |")
- print("|Games| | |")
- print("|CMD |D> | |")
- print("| | | |")
- print("| |--------------+ |")
- print("+----------------------+")
- print("|Start|CMD| |")
- print("+----------------------+")
- WinderpProgramsStart()
- end
- function WinderpCMDCleared()
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- print("+----------------------+")
- print("| +C:WinCraft--------+ |")
- print("| | | |")
- print("| |C:CMD> | |")
- print("| | | |")
- print("| | | |")
- print("| +------------------+ |")
- print("+----------------------+")
- print("|Start|CMD| |")
- print("+----------------------+")
- WinderpCommandPrompt()
- end
- -- CODE/STUFF
- function WinderpProgramsStart() -- Programs
- command = read()
- if command == startmenu then
- Winderp() --open start menu
- end
- if command == games then
- WinderpGames()
- end
- if command == commandprompt then
- WinderpCMD() --cmd
- end
- end
- function WinderpProgramsGame() -- Games
- command = read()
- if command == startmenu then
- WinderpGamesStart() --open start menu with games open
- end
- end
- function WinderpPrograms()
- command = read()
- if command == startmenu then
- WinderpStart() --open start menu
- end
- end
- function WinderpCommandPrompt()
- cmd = read()
- if cmd == clear then
- WinderpCMDCleared()
- end
- if cmd == startmenu then
- WinderpStartCMD() --open start menu
- end
- end
- -- OPEN (IMPORTANT! DO NOT REMOVE)
- term.clear()
- term.setCursorPos(1,1) --Clears Screen
- Winderp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement