forked from ndyer/pygame-dvd
fixing some formatting and adding a comment
This commit is contained in:
@@ -6,6 +6,7 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
SCALE_RATIO = (0.325 / 800.0)
|
||||
SPEED_RATIO = (2.5 / 800.0)
|
||||
|
||||
|
||||
class SteamLogo(pygame.sprite.Sprite):
|
||||
"""
|
||||
A Pygame sprite representing a Steam logo that moves around the screen.
|
||||
@@ -85,7 +86,7 @@ class SteamLogo(pygame.sprite.Sprite):
|
||||
# If this is a mini logo, make it 80% darker
|
||||
if self.is_mini:
|
||||
color_surface.fill(tuple(int(x / 5) for x in new_color))
|
||||
else: # If not, make it the generated color.
|
||||
else: # If not, make it the generated color.
|
||||
color_surface.fill(new_color)
|
||||
|
||||
# Replace the drawn image with a copy of the base image and apply the randomly generated color.
|
||||
|
Reference in New Issue
Block a user