1 # A doors / keypads set
4 from pgzero.loaders import images
5 from ..actors.orientatedsurf import OrientatedSurfActor
6 from ..constants import TILE_SIZE
9 class Door(OrientatedSurfActor):
11 def __init__(self, x, y, angle):
13 self._open_surf = images.load(os.path.join('fixtures', 'door_open'))
14 self._closed_surf = images.load(os.path.join('fixtures', 'door'))
15 self.game_pos = (x, y)
16 super().__init__(self._closed_surf, angle=angle, anchor=(0, 0))
20 self.surf = self._open_surf
24 self.surf = self._closed_surf