changed super call to match pygame.sprite.Sprite
This commit is contained in:
parent
7e7d412f1e
commit
6a39ca4aaa
@ -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.
|
||||
"""
|
||||
|
||||
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.
|
||||
|
||||
@ -28,8 +28,8 @@ class SteamLogo(pygame.sprite.Sprite):
|
||||
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.
|
||||
"""
|
||||
super().__init__()
|
||||
|
||||
super().__init__(*groups)
|
||||
self.is_mini = is_mini
|
||||
|
||||
# Load and scale original logo image
|
||||
|
Loading…
Reference in New Issue
Block a user