From 029b435e6e3a79f122122c47c41bd773149e6480 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 15:57:53 +0200 Subject: [PATCH] Z is for Zehicle Management. --- koperkapel/scenes/level.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koperkapel/scenes/level.py b/koperkapel/scenes/level.py index d2c7d16..ebd87e1 100644 --- a/koperkapel/scenes/level.py +++ b/koperkapel/scenes/level.py @@ -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) - - -- 2.34.1