From 44f75b52d05ce14dc32975752ed6b791ae35d7d5 Mon Sep 17 00:00:00 2001 From: Brosef Date: Fri, 20 Jun 2025 18:21:50 +0100 Subject: [PATCH] Added size property --- src/gameUtils/anim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gameUtils/anim.py b/src/gameUtils/anim.py index 919bf0a..54a18bc 100644 --- a/src/gameUtils/anim.py +++ b/src/gameUtils/anim.py @@ -28,6 +28,7 @@ class AnimatedObject: self._animStart = None self._animations = {} self.baseFrame = pygame.image.load(baseFrame) + self.size = self.baseFrame.size self._surf = pygame.Surface(self.baseFrame.size) def getFrame(self) -> pygame.Surface: