X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fvehicles%2Fwalking.py;fp=koperkapel%2Fvehicles%2Fwalking.py;h=adcdfc931f87b276e7d3be3e79ad54069076ad52;hb=6cb552f903dce3e3bad9b3f3be829f0996422ae2;hp=f8198923d921d61f1809b18746fd5833540233aa;hpb=a747f8e97b384b0c2552db5e0bfac1c381b2f8b6;p=koperkapel.git diff --git a/koperkapel/vehicles/walking.py b/koperkapel/vehicles/walking.py index f819892..adcdfc9 100644 --- a/koperkapel/vehicles/walking.py +++ b/koperkapel/vehicles/walking.py @@ -1,17 +1,19 @@ """ 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")