projects
/
koperkapel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
466b064
)
Move roaches to the roach layer.
author
Simon Cross
<hodgestar@gmail.com>
Wed, 2 Mar 2016 19:34:22 +0000
(21:34 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Wed, 2 Mar 2016 19:34:22 +0000
(21:34 +0200)
koperkapel/scenes/roaches.py
patch
|
blob
|
history
diff --git
a/koperkapel/scenes/roaches.py
b/koperkapel/scenes/roaches.py
index 74f32a96f3344acacddb3406633e9cce62edbaab..923e6fde263e3e62da76aed366fab01b048abf69 100644
(file)
--- 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)