card can resize back to normal size but loses details on each time doing it

This commit is contained in:
2023-12-12 22:35:10 +01:00
parent 386aaddae3
commit 286225fd64
4 changed files with 15 additions and 2 deletions

View File

@ -33,6 +33,8 @@ class MonsterCard(pygame.sprite.Sprite):
self.__inputHandler = inputHandler
self.rect.center = self.__pos
self.__description = data["description"]
self.original_size = self.image.get_size()
self.original_position = self.rect.center
for attack in data["attacks"]:
self.__attacks.append(attack)