""" Roach management scene. """
+from pygame.constants import BLEND_RGBA_MULT, BLEND_RGBA_SUB
from pgzero.constants import keys, mouse
from pgzero.actor import Actor
from pgzero.screen import Screen
base.blit(overlay, (0, 0))
frame = self._vehicle.roach_management_frame()
if frame is not None:
- base.blit(frame, (0, 0))
+ frame = frame.copy()
+ frame.fill((255, 255, 255, 8), None, BLEND_RGBA_MULT)
+ frame_rect = frame.get_rect()
+ base.blit(frame, (
+ VEHICLE_MID_X - frame_rect.w // 2,
+ VEHICLE_MID_Y - frame_rect.h // 2),
+ None, BLEND_RGBA_SUB)
self.actors.default.add(SurfActor(base))
def _init_seats(self):