SHOW:
|
|
- or go back to the newest paste.
1 | - | rednet.open("left") |
1 | + | rednet.open("top") |
2 | - | term_clear() |
2 | + | |
3 | print("-----------------------------------") | |
4 | print(" W E") | |
5 | print(" A S D Q") | |
6 | while true do | |
7 | local event, key = os.pullEvent("char") | |
8 | if key == "w" then | |
9 | - | if key == keys.w then |
9 | + | |
10 | end | |
11 | if key == "a" then | |
12 | - | if key == keys.a then |
12 | + | |
13 | end | |
14 | if key == "s" then | |
15 | - | if key == keys.s then |
15 | + | |
16 | end | |
17 | if key == "d" then | |
18 | - | if key == keys.d then |
18 | + | |
19 | end | |
20 | if key == "q" then | |
21 | - | if key == keys.q then |
21 | + | |
22 | end | |
23 | if key == "e" then | |
24 | - | if key == keys.e then |
24 | + | |
25 | end | |
26 | if key == "x" then | |
27 | - | if key == keys.x then |
27 | + | |
28 | end | |
29 | end |