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:
parent
31f6593ae0
commit
dbd78bb5c5
BIN
steam_saver/surfaces/resources/steam_logo.png
Normal file
BIN
steam_saver/surfaces/resources/steam_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user