Place roach seats.
[koperkapel.git] / koperkapel / vehicles / walking.py
1 """ A vehicle to represent roaches on foot. """
2
3 import math
4 from pgzero.actor import Actor
5 from .base import Vehicle, Seat
6
7
8 class Walking(Vehicle):
9
10     def __init__(self):
11         self.background = Actor("vehicles/walking/background")
12         n_seats = 6
13         d_theta = 2 * math.pi / n_seats
14         self.seats = [
15             Seat(
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)
19         ]