def _init_bg(self):
self.actors.default.clear()
- overlay = self._vehicle.roach_management_overlay()._surf
+ overlay = self._vehicle.roach_management_overlay()
base = overlay.copy()
if self._level_scene is not None:
base.fill((0, 0, 0))
import math
from itertools import chain, islice, repeat
from pygame.constants import BLEND_RGBA_MULT
-from pgzero.actor import Actor
from pgzero.loaders import images
from ..actors.orientatedsurf import OrientatedSurfActor
from ..actors.animsurf import AnimatedSurfActor
self.game_pos = (0, 0)
def roach_management_overlay(self):
- return Actor("vehicles/%s/background" % (self.vehicle_type,))
+ return images.load("vehicles/%s/background" % (self.vehicle_type,))
def init_seats(self):
raise NotImplementedError("Vehicles should specify a list of seats")