Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Here is the Menu for "Jump IT" you can download "Jump IT" at: pastebin.com/bwgdUqqP
- --UPDATE!!!: ADDED INSTALLER: pastebin.com/hPg7L2QY
- function PrintMenu()
- shell.run("clear")
- print("Select one")
- print()
- print()
- print("x-New Game")
- print("x-Exit")
- print("x-Highscore")
- end
- PrintMenu()
- while true do
- event,lol,x,y,z = os.pullEvent("mouse_click")
- if y == 4 and x == 1 then
- shell.run("clear")
- shell.run("Jump")
- break
- elseif y==5 and x==1 then
- shell.run("clear")
- break
- elseif y==6 and x==1 then
- write("Whose highscore? ")
- name=io.read()
- file = fs.open("score/"..name,"r")
- local fileData = {}
- local line = file.readLine()
- repeat
- table.insert(fileData,line)
- line = file.readLine()
- until line == nil
- file.close()
- local Highscore = fileData[1]
- print("The player has completed "..Highscore.." Jumps")
- sleep(3)
- shell.run("clear")
- PrintMenu()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement