1 # A doors / keypads set
4 from pgzero.loaders import images
5 from ..actors.orientatedsurf import SurfActor
6 from ..constants import TILE_SIZE
9 class Keypad(SurfActor):
11 def __init__(self, x, y, doors):
13 self.game_pos = (x, y)
14 surf = images.load(os.path.join('fixtures', 'keypad'))
15 super().__init__(surf, anchor=(0, 0))
17 def activate(self, roaches):
19 for door in self._doors: