1
0
forked from ndyer/pygame-dvd

changed the dvd logo to the steam logo

changed the scaling function to a smoother one
This commit is contained in:
Nicholas Dyer 2025-01-06 16:59:02 -05:00
parent 31f6593ae0
commit dbd78bb5c5
2 changed files with 6 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -3,7 +3,7 @@ import os
import random
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
LOGO_SCALING = 0.1
LOGO_SCALING = .5
class SteamLogo(pygame.sprite.Sprite):
@ -28,9 +28,10 @@ class SteamLogo(pygame.sprite.Sprite):
super().__init__()
# Load and scale original logo image
self.base_image = pygame.image.load(SCRIPT_DIR + '/resources/dvd.png')
self.base_image = pygame.image.load(SCRIPT_DIR + '/resources/steam_logo.png')
self.base_image.convert_alpha()
self.base_image = pygame.transform.scale(self.base_image, (self.base_image.get_width() * LOGO_SCALING,
self.base_image = pygame.transform.smoothscale(self.base_image,
(self.base_image.get_width() * LOGO_SCALING,
self.base_image.get_height() * LOGO_SCALING))
# Copy the base image and store it in a separate instance variable; this is the image that will be drawn.