Slide 49
Slide 49 text
def setup_queue(game, x, y, num_of_actors=6):
“”” Create the NPCs for the aqueue set-piece “””
for i in range(0, num_of_actors):
spaceperson = create_spaceman(game, name="cosmonaut%i"%i)
game.add(spaceperson)
point = (x, y + random.randint(-15, 15))
rocketpilot = spaceperson
rocketpilot.relocate("aqueue", point)
rocketpilot.ai = False
x += random.randint(120, 180)