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