From: Simon Cross Date: Sat, 5 Mar 2016 13:57:53 +0000 (+0200) Subject: Z is for Zehicle Management. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=029b435e6e3a79f122122c47c41bd773149e6480;p=koperkapel.git Z is for Zehicle Management. --- 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) - -