.
This commit is contained in:
parent
bb4a6ea7f9
commit
f4b97df518
@ -10,26 +10,32 @@ fopos["r"] i=1,10 do
|
||||
if rand == 1 then
|
||||
write("forward ")
|
||||
tutel.forward()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
elseif rand == 2 then
|
||||
write("back ")
|
||||
tutel.back()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
elseif rand == 3 then
|
||||
write("left ")
|
||||
tutel.left()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
elseif rand == 4 then
|
||||
write("right ")
|
||||
tutel.right()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
elseif rand == 5 then
|
||||
write("up ")
|
||||
tutel.up()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
elseif rand == 6 then
|
||||
write("down ")
|
||||
tutel.right()
|
||||
pos = tutel.getPos()
|
||||
print("x: " .. pos["x"] .. " y: " .. pos["y"] .. " z: " .. pos["z"] .. " r: " .. pos["r"])
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user