1 """ A vehicle to represent roaches on foot. """
4 from pgzero.actor import Actor
5 from .base import Vehicle, Seat
8 class Walking(Vehicle):
11 self.background = Actor("vehicles/walking/background")
13 d_theta = 2 * math.pi / n_seats
16 actor=Actor("vehicles/walking/seat"),
17 pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
18 for i in range(n_seats)