From: Simon Cross Date: Wed, 2 Mar 2016 19:34:22 +0000 (+0200) Subject: Move roaches to the roach layer. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=1df183b924e272541198f34c1ebb3d33406192a6;p=koperkapel.git Move roaches to the roach layer. --- diff --git a/koperkapel/scenes/roaches.py b/koperkapel/scenes/roaches.py index 74f32a9..923e6fd 100644 --- a/koperkapel/scenes/roaches.py +++ b/koperkapel/scenes/roaches.py @@ -10,6 +10,7 @@ class RoachesScene(Scene): def __init__(self): super().__init__() + self.actors.add_layer("roaches", level=10) self._roach_actors = {} def update(self, world, dt): @@ -23,7 +24,7 @@ class RoachesScene(Scene): roach.attributes.items()), ))) self._roach_actors[roach.name] = actor - self.actors.add(actor) + self.actors.add(actor, layer="roaches") # TODO: remove missing roaches actor.pos = (300, 100 + i * 100)