Merge branch 'master' of ctpug.org.za:koperkapel
[koperkapel.git] / koperkapel / vehicles / walking.py
1 """ A vehicle to represent roaches on foot. """
2
3 import math
4 from .base import Vehicle, Seat
5 from ..actors.buttons import TextButton
6
7
8 class Walking(Vehicle):
9
10     def __init__(self):
11         n_seats = 6
12         d_theta = 2 * math.pi / n_seats
13         self.seats = [
14             Seat(pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
15             for i in range(n_seats)
16         ]
17         self.background = TextButton("Walking Background")