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

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