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

@@ -15,7 +15,7 @@ class Coin(DrawableGameObject):
assets: dict | None = None,
):
super().__init__(coords, parent, assets)
self._surface = pygame.image.load(self.assets["coin.png"])
self._surface = pygame.image.load(self.assets["coin.png"]).convert_alpha()
self.rect = self.surface.get_rect()
self.rect.topleft = coords
# уменьшаем размер монетки