Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- term_clear()
- print("Computercraft Turtle Control Client")
- print("-----------------------------------")
- print(" W E")
- print(" A S D Q")
- while true do
- local event, key = os.pullEvent("char")
- if key == keys.w then
- rednet.broadcast("forward")
- end
- if key == keys.a then
- rednet.broadcast("left")
- end
- if key == keys.s then
- rednet.broadcast("down")
- end
- if key == keys.d then
- rednet.broadcast("right")
- end
- if key == keys.q then
- rednet.broadcast("down")
- end
- if key == keys.e then
- rednet.broadcast("up")
- end
- if key == keys.x then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement