""" A vehicle to represent roaches on foot. """
import math
+from pgzero.actor import Actor
from .base import Vehicle, Seat
-from ..actors.buttons import TextButton
class Walking(Vehicle):
def __init__(self):
+ self.background = Actor("vehicles/walking/background")
n_seats = 6
d_theta = 2 * math.pi / n_seats
self.seats = [
- Seat(pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
+ Seat(
+ actor=Actor("vehicles/walking/seat"),
+ pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
for i in range(n_seats)
]
- self.background = TextButton("Walking Background")