Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- tmp=http.get("http://www.adslhouba.fr/_comment/liveTurtle.php")
- if tmp==nil then
- else
- test=tmp.readAll()
- print(test)
- donne=textutils.unserialize(test)
- for i, dt in pairs(donne) do
- if dt=='droite' then
- turtle.turnRight()
- elseif dt=="gauche" then
- turtle.turnLeft()
- elseif dt=="avance" then
- turtle.forward()
- elseif dt=="recule" then
- turtle.back()
- end
- end
- end
- os.sleep(3)
- end
Add Comment
Please, Sign In to add comment