SHOW:
|
|
- or go back to the newest paste.
1 | term.clear() | |
2 | up = peripheral.wrap("top") | |
3 | term.setCursorPos(20,1) | |
4 | print("Direction?") | |
5 | d = string.lower(read()) | |
6 | if d == "up" then | |
7 | monitor = up | |
8 | elseif d == "down" then | |
9 | monitor = down | |
10 | elseif d == "right" then | |
11 | monitor = right | |
12 | elseif d == "left" then | |
13 | monitor = left | |
14 | end | |
15 | term.setCursorPos(12,1) | |
16 | term.clear() | |
17 | print("What Would You Like To Say?") | |
18 | t = read() | |
19 | monitor.write(t) |