Advertisement
RobotBubble

GameMenu

Oct 30th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3. term.setTextColor(colors.lightGray)
  4. print("--------------------------")
  5. print("---")
  6. term.setTextColor(colors.lightBlue)
  7. term.setCursorPos(4, 2)
  8. print("Bubble Bot Computers")
  9. term.setTextColor(colors.lightGray)
  10. term.setCursorPos(24, 2)
  11. print("---")
  12. print("--------------------------")
  13. term.setCursorPos(1, 5)
  14. term.setTextColor(colors.white)
  15. term.setCursorPos(1, 5)
  16. print("[M] Menu")
  17. term.setCursorPos(1, 7)
  18. print("[1] 2048")
  19. term.setCursorPos(1, 9)
  20. print("[2] ReactionTime")
  21. term.setCursorPos(1, 11)
  22. print("[3] Stackerz")
  23. term.setCursorPos(1, 13)
  24. print("[4] TypeTest")
  25. local sEvent, param = os.pullEvent("key")
  26. if(sEvent == "key" ) then
  27. if(param == 50) then
  28. term.clear()
  29. term.setCursorPos(1, 1)
  30. shell.run("menu")
  31. elseif(param == 2) then
  32. term.clear()
  33. term.setCursorPos(1, 1)
  34. shell.run("2048")
  35. elseif(param == 109) then
  36. term.clear()
  37. term.setCursorPos(1, 1)
  38. shell.run("2048")
  39. elseif(param == 3) then
  40. term.clear()
  41. term.setCursorPos(1, 1)
  42. shell.run("reaction")
  43. elseif(param == 110) then
  44. term.clear()
  45. term.setCursorPos(1, 1)
  46. shell.run("reaction")
  47. elseif(param == 4) then
  48. term.clear()
  49. term.setCursorPos(1, 1)
  50. shell.run("stackerz")
  51. elseif(param == 111) then
  52. term.clear()
  53. term.setCursorPos(1, 1)
  54. shell.run("stackerz")
  55. elseif(param == 5) then
  56. term.clear()
  57. term.setCursorPos(1, 1)
  58. shell.run("typetest")
  59. elseif(param == 106) then
  60. term.clear()
  61. term.setCursorPos(1, 1)
  62. shell.run("typetest")
  63. else
  64. shell.run("games")
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement