projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Place roach seats.
[koperkapel.git]
/
koperkapel
/
vehicles
/
walking.py
diff --git
a/koperkapel/vehicles/walking.py
b/koperkapel/vehicles/walking.py
index f8198923d921d61f1809b18746fd5833540233aa..adcdfc931f87b276e7d3be3e79ad54069076ad52 100644
(file)
--- a/
koperkapel/vehicles/walking.py
+++ b/
koperkapel/vehicles/walking.py
@@
-1,17
+1,19
@@
""" A vehicle to represent roaches on foot. """
import math
""" A vehicle to represent roaches on foot. """
import math
+from pgzero.actor import Actor
from .base import Vehicle, Seat
from .base import Vehicle, Seat
-from ..actors.buttons import TextButton
class Walking(Vehicle):
def __init__(self):
class Walking(Vehicle):
def __init__(self):
+ self.background = Actor("vehicles/walking/background")
n_seats = 6
d_theta = 2 * math.pi / n_seats
self.seats = [
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)
]
for i in range(n_seats)
]
- self.background = TextButton("Walking Background")