Place roach seats.
[koperkapel.git] / koperkapel / vehicles / walking.py
index f8198923d921d61f1809b18746fd5833540233aa..adcdfc931f87b276e7d3be3e79ad54069076ad52 100644 (file)
@@ -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")