From 1df183b924e272541198f34c1ebb3d33406192a6 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Wed, 2 Mar 2016 21:34:22 +0200 Subject: [PATCH] Move roaches to the roach layer. --- koperkapel/scenes/roaches.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.34.1