The endless pointlessness of level progression
[koperkapel.git] / koperkapel / scenes / base.py
index 14998034ce7557a883bb14ee478f5c6e67bab647..24a8c615fa06c43f97fe893f302d5aab3197f26b 100644 (file)
@@ -29,8 +29,10 @@ class Engine:
             ev.apply(self)
 
     def change_scene(self, scene):
+        print('here', self._scene)
         self._apply_events(self._scene.exit(self._world.proxy()))
         self._scene = scene
+        print('there', self._scene)
         self._apply_events(self._scene.enter(self._world.proxy()))
 
     def change_world(self, *args, **kw):
@@ -43,9 +45,6 @@ class Engine:
     def move_screen(self, offset):
         self._scene.move_screen(offset)
 
-    def add_roach(self):
-        self._world.add_new_roach()
-
     @apply_events
     def update(self, dt):
         return self._scene.update(self._world.proxy(), self, dt)
@@ -110,11 +109,6 @@ class MoveViewportEvent(Event):
 
     ENGINE_METHOD = "move_screen"
 
-class AddRoachEvent(Event):
-    """ Change to a new scene. """
-
-    ENGINE_METHOD = "add_roach"
-
 
 class Layer:
     """ A single layer of actors. """