Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function Touch(m,y)
- n = 0
- term.setCursorPos(1,y)
- for i = 1, #m do
- print(m[i])
- end
- while true do
- local a, b, c, d = os.pullEvent("mouse_click")
- for i = 1, #m do
- if d == i + (y - 1) then n = i end
- end
- if n > 0 then break end
- end
- return n
- end
- function Menu1()
- term.setBackgroundColor(colors.darkRed)
- Clear()
- print("Bold Fighter - Beta")
- local options = {"start","exit"}
- local n = Touch(options,3)
- if options[n] == "start" then
- shell.run("os/System/Programs/BoldFighter/Game.lua","Base","Free",3)
- elseif options[n] == "exit" then
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement