特技关卡 8-2for b in bananas
until near b
turnTo b
step 1
特技关卡 8-3
chase = (b) ->
until near b
turnTo b
step 1
chase bananas[1]
chase bridge
chase bananas[0]
特技关卡 8-4
until near banana
say "Not yet..."
crocodile.turn 45
特技关卡 8-5
until beavers[0].near bananas[2]
beavers[0].step 1
until beavers[2].near bananas[0]
beavers[2].step 1
until beavers[1].near bananas[1]
beavers[1].step 1
step distanceTo islands[1]
特技关卡 8-6
until near banana
turtle.turnTo banana
turtle.step 1
特技关卡 8-7
until cat.sleeping()
wait()
step distanceTo banana
特技关卡 8-8
step distanceTo islands[4]
until near banana
wait()
特技关卡 8-9
i = 0for b in bridges
turnTo b
step distanceTo b
until near bananas[i]
wait()
i++
特技关卡 8-10for c in crocodiles
c.turn 90for b in bananas
step 7
until near b
wait()
特技关卡 8-11for banana in bananas
until near banana
wait()
特技关卡 8-12for banana in bananas
until near banana
crocodile.turn 360
wait()
特技关卡 8-13
until cats[1].sleeping()
wait()
step 10
until cats[0].sleeping()
wait()
step 10
特技关卡 8-14
i = 0for t in turtles
step distanceTo t
d = distanceTo bushes[i]
t.step d
until near bananas[i]
wait()
t.step -d
i = i + 1
特技关卡 8-15
goto = (t) ->
turnTo t
step distanceTo t
until cat.sleeping()
wait()
goto bananas[0]
until cat.sleeping()
wait()
goto bushes[6]
goto bushes[15]
until near bananas[1]
wait()