class Walking(Vehicle):
- def __init__(self):
- self.background = Actor("vehicles/walking/background")
+ vehicle_type = "walking"
+
+ def init_seats(self):
n_seats = 6
d_theta = 2 * math.pi / n_seats
- self.seats = [
+ return [
Seat(
- actor=Actor("vehicles/walking/seat"),
+ vehicle=self,
pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
for i in range(n_seats)
]