1
0
forked from ndyer/pygame-dvd

fixed bug where logos would only spawn on the left half of screen

This commit is contained in:
Nicholas Dyer 2025-01-07 09:22:21 -05:00
parent 22f7a60499
commit d885fd4030
Signed by: ndyer
GPG Key ID: B4FEDEE7298D2503

View File

@ -66,7 +66,7 @@ class SteamLogo(pygame.sprite.Sprite):
# speed values (e.g. 2.124) and it will appear as though it is moving smoothly. # speed values (e.g. 2.124) and it will appear as though it is moving smoothly.
# The starting location of the logo is randomized. # The starting location of the logo is randomized.
self.float_x = random.random() * self.max_y self.float_x = random.random() * self.max_x
self.float_y = random.random() * self.max_y self.float_y = random.random() * self.max_y
self.rect.x = self.float_x self.rect.x = self.float_x
self.rect.y = self.float_y self.rect.y = self.float_y