phantomcastle: always convert_alpha
This commit is contained in:
@@ -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
|
||||
# уменьшаем размер монетки
|
||||
|
||||
Reference in New Issue
Block a user