Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- mon = peripheral.wrap("top")
- term.setCursorPos(1,1)
- mon.setCursorPos(1,1)
- term.write("Please select a number of a game.")
- term.setCursorPos(1,3)
- term.write(" 1. 2048")
- term.setCursorPos(1,4)
- term.write(" 2. Get that dolar")
- term.setCursorPos(1,5)
- term.write(" 3. In space")
- term.setCursorPos(1,6)
- term.write(" 4. Shoot'em all")
- mon.write("Please select a number of a game.")
- mon.setCursorPos(1,3)
- mon.write(" 1. 2048")
- mon.setCursorPos(1,4)
- mon.write(" 2. Get that dolar")
- mon.setCursorPos(1,5)
- mon.write(" 3. In space")
- mon.setCursorPos(1,6)
- mon.write(" 4. Shoot'em all")
- term.setCursorPos(1,2)
- mon.setCursorPos(1,2)
- selection = io.read()
- term.write(selection.." selected.")
- mon.write(selection.." selected.")
- sleep(2)
- if selection == 1 then
- shell.run("2048/2048")
- end
- if selection == 2 then
- shell.run("Game2/game2")
- end
- if selection == 3 then
- shell.run("Game3/game3")
- end
- if selection == 4 then
- shell.run("Game4/game4")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement