Z is for Zehicle Management.
authorSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 13:57:53 +0000 (15:57 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 13:57:53 +0000 (15:57 +0200)
koperkapel/scenes/level.py

index d2c7d162ef28b99007850086b1a1f45ee02a74bc..ebd87e120d3575ff795df1caa253fadab796ff5d 100644 (file)
@@ -61,7 +61,7 @@ class BaseLevelScene(Scene):
                             area=(viewport[0], viewport[1], WIDTH, HEIGHT))
         if self._level_layer != 'floor':
             screen.surface.blit(self._overlay, (0, 0),
-                         area=(viewport[0], viewport[1], WIDTH, HEIGHT), 
+                         area=(viewport[0], viewport[1], WIDTH, HEIGHT),
                          special_flags=pgl.BLEND_MULT)
         self.actors.draw(screen)
 
@@ -159,8 +159,10 @@ class GameLevelScene(BaseLevelScene):
         elif key == keys.V:
             # Leave vehicle
             print('Vehicle key pressed')
+        elif key == keys.Z:
+            # Vehicle management
+            from .roach_management import RoachesScene
+            return[ChangeSceneEvent(RoachesScene())]
         if offset:
             return [MoveViewportEvent(offset)]
         return super(GameLevelScene, self).on_key_down(key, mod, unicode)
-        
-