コード例 #1
0
def turn_random(bee):
    vel = 0.2
    direction = random.choice([-1, 1])
    bee.set_vel(direction * vel, -direction * vel)
    sleep(random.uniform(1, 5))
コード例 #2
0
def turn_random(bee):
    vel = 0.2
    direction = random.choice([-1,1])
    bee.set_vel(direction*vel, -direction*vel)
    sleep(random.uniform(1,5))
コード例 #3
0
def go_straight(bee):
    vel = 0.5
    bee.set_vel(vel, vel)
コード例 #4
0
def go_straight(bee):
    vel = 0.5
    bee.set_vel(vel,vel)