.
This commit is contained in:
parent
c811a2067d
commit
3d821b223a
@ -15,28 +15,28 @@ for i=1,20 do
|
|||||||
rand = math.random(1,6)
|
rand = math.random(1,6)
|
||||||
|
|
||||||
if rand == 1 then
|
if rand == 1 then
|
||||||
print("forward")
|
write("forward ")
|
||||||
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)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 2 then
|
elseif rand == 2 then
|
||||||
print("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)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 3 then
|
elseif rand == 3 then
|
||||||
print("up")
|
write("up ")
|
||||||
y = tutel.up(y)
|
y = tutel.up(y)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 4 then
|
elseif rand == 4 then
|
||||||
print("down")
|
write("down ")
|
||||||
y = tutel.down(y)
|
y = tutel.down(y)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 5 then
|
elseif rand == 5 then
|
||||||
print("left")
|
write("left ")
|
||||||
r = tutel.left(r)
|
r = tutel.left(r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
elseif rand == 6 then
|
elseif rand == 6 then
|
||||||
print("right")
|
write("right ")
|
||||||
r = tutel.right(r)
|
r = tutel.right(r)
|
||||||
print("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
write("x: " .. x .. " y: " .. y .. " z: " .. z .. " r: " .. r)
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user