.
This commit is contained in:
parent
1dcf200d2f
commit
139c9b79d8
@ -19,23 +19,23 @@ for i=1,20 do
|
|||||||
x,y,z,r = tutel.forward(x,y,z,r)
|
x,y,z,r = tutel.forward(x,y,z,r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 2 then
|
elseif rand == 2 then
|
||||||
write("back ")
|
write("back ")
|
||||||
x,y,z,r = tutel.back(x,y,z,r)
|
x,y,z,r = tutel.back(x,y,z,r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 3 then
|
elseif rand == 3 then
|
||||||
write("up ")
|
write("up ")
|
||||||
y = tutel.up(y)
|
y = tutel.up(y)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 4 then
|
elseif rand == 4 then
|
||||||
write("down ")
|
write("down ")
|
||||||
y = tutel.down(y)
|
y = tutel.down(y)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 5 then
|
elseif rand == 5 then
|
||||||
write("left ")
|
write("left ")
|
||||||
r = tutel.left(r)
|
r = tutel.left(r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 6 then
|
elseif rand == 6 then
|
||||||
write("right ")
|
write("right ")
|
||||||
r = tutel.right(r)
|
r = tutel.right(r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user