Advertisement
CodeCrafter

Tgl

Mar 27th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. local Image1 = paintutils.loadImage(".Logo6")
  2. local Versie = "1.5"
  3.  
  4. paintutils.drawImage(Image1,1,1)
  5.  
  6. term.setCursorPos(5,5)
  7.  
  8. sleep(3)
  9.  
  10. term.clear()
  11. term.setCursorPos(5,5)
  12.  
  13. print("Welcome by tgl (the game libary) ")
  14.  
  15. term.setCursorPos(5,7)
  16.  
  17. print("This is version "..Versie)
  18.  
  19. term.setCursorPos(5,16)
  20.  
  21. print("My games")
  22. term.setCursorPos(5,18)
  23. print("Store")
  24.  
  25.  
  26. while true do
  27. local event,button, X, Y = os.pullEvent("mouse_click")
  28. XY = X..","..Y
  29.  
  30.  
  31. if XY == "5,16" then
  32. term.clear()
  33. term.setCursorPos(1,7)
  34. print("My games")
  35. term.setCursorPos(1,1)
  36. print("Return to main menu ")
  37. term.setCursorPos(5,16)
  38. if fs.exists("Pong") then
  39. print("Pong")
  40. else
  41. end
  42. term.setCursorPos(5,18)
  43. if fs.exists("minecraft") then
  44. print("Mineception")
  45. else
  46. end
  47. term.setCursorPos(5,14)
  48. print("worm")
  49.  
  50. while true do
  51. local event, button, X, Y = os.pullEvent("mouse_click")
  52. XY = X..","..Y
  53.  
  54. if XY == "1,1" then
  55. shell.run("tgl")
  56. break
  57. end
  58.  
  59. if XY == "5,16" and fs.exists("Pong") then
  60. shell.run("Pong")
  61. break
  62. end
  63.  
  64. if XY == "5,18" and fs.exists("minecraft") then
  65. shell.run("minecraft")
  66. break
  67. end
  68.  
  69. if XY == "5,14" then
  70. shell.run("worm")
  71. break
  72. else
  73. end
  74.  
  75. end
  76. end
  77.  
  78. if XY == "5,18" then
  79. term.clear()
  80. term.setCursorPos(5,6)
  81. print("Store")
  82. term.setCursorPos(1,1)
  83. print("back to main menu ")
  84. term.setCursorPos(5,8)
  85. print("Here can u download some games ")
  86. term.setCursorPos(5,10)
  87. if fs.exists("minecraft") then
  88. else
  89. print("Minecraft for minecraft ")
  90. end
  91. term.setCursorPos(5,12)
  92. if fs.exists("Pong") then
  93. else
  94. print("Pong")
  95. end
  96.  
  97. while true do
  98. local event, button, X, Y = os.pullEvent("mouse_click")
  99. XY = X..","..Y
  100.  
  101. if XY == "1,1" then
  102. shell.run("tgl")
  103. break
  104. end
  105.  
  106. if XY == "5,10" then
  107. print("start Donwloading Minecraft")
  108. shell.run("pastebin","get","wmdAN3kN","minecraft")
  109. sleep(3)
  110. shell.run("tgl")
  111. break
  112. end
  113.  
  114. if XY == "5,12" then
  115. shell.run("pastebin","get","STEgxXyf","Pong")
  116. sleep(3)
  117. shell.run("tgl")
  118. break
  119. end
  120. end
  121. end
  122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement