phantomcastle: always convert_alpha

This commit is contained in:
2024-04-07 20:37:02 +03:00
parent 087886955d
commit a09dfebaa8
5 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class Hero(DrawableGameObject, EventHandler):
assets: dict | None = None,
):
super().__init__(coords, parent, assets)
self._surface = pygame.image.load(self.assets["ghost.png"])
self._surface = pygame.image.load(self.assets["ghost.png"]).convert_alpha()
self.rect = self.surface.get_rect()
sf = Coords(0.8, 0.8)
self._surface, self.rect = self.scene.scale_box(self.surface, self.rect, sf)