Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.lightGray)
- print("--------------------------")
- print("---")
- term.setTextColor(colors.lightBlue)
- term.setCursorPos(4, 2)
- print("Bubble Bot Computers")
- term.setTextColor(colors.lightGray)
- term.setCursorPos(24, 2)
- print("---")
- print("--------------------------")
- term.setCursorPos(1, 5)
- term.setTextColor(colors.white)
- term.setCursorPos(1, 5)
- print("[M] Menu")
- term.setCursorPos(1, 7)
- print("[1] 2048")
- term.setCursorPos(1, 9)
- print("[2] ReactionTime")
- term.setCursorPos(1, 11)
- print("[3] Stackerz")
- term.setCursorPos(1, 13)
- print("[4] TypeTest")
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key" ) then
- if(param == 50) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("menu")
- elseif(param == 2) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("2048")
- elseif(param == 109) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("2048")
- elseif(param == 3) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("reaction")
- elseif(param == 110) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("reaction")
- elseif(param == 4) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("stackerz")
- elseif(param == 111) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("stackerz")
- elseif(param == 5) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("typetest")
- elseif(param == 106) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("typetest")
- else
- shell.run("games")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement