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)
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)
-
-