1
0
forked from ndyer/pygame-dvd

changed super call to match pygame.sprite.Sprite

This commit is contained in:
Nicholas Dyer 2025-01-07 16:26:31 -05:00
parent 7e7d412f1e
commit 6a39ca4aaa
Signed by: ndyer
GPG Key ID: B4FEDEE7298D2503

View File

@ -20,7 +20,7 @@ class SteamLogo(pygame.sprite.Sprite):
is_mini (bool): Bool to determine whether the logo is a mini (background) logo or not. is_mini (bool): Bool to determine whether the logo is a mini (background) logo or not.
""" """
def __init__(self, window_size: tuple, is_mini: bool = False): def __init__(self, window_size: tuple, is_mini: bool = False, *groups):
""" """
Initialize SteamLogo sprite with given window size. Initialize SteamLogo sprite with given window size.
@ -28,8 +28,8 @@ class SteamLogo(pygame.sprite.Sprite):
window_size (tuple): Size of the game window (width, height). window_size (tuple): Size of the game window (width, height).
is_mini (bool): Determines if the logo is going to be a background logo (mini) or the foreground one. is_mini (bool): Determines if the logo is going to be a background logo (mini) or the foreground one.
""" """
super().__init__()
super().__init__(*groups)
self.is_mini = is_mini self.is_mini = is_mini
# Load and scale original logo image # Load and scale original logo image