Skip to content

Commit 8314817

Browse files
committed
Updating Pygame paths for new folder structure
1 parent 784fd99 commit 8314817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

top-python-game-engines/pygame/pygame_game.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self):
4040

4141
# Get the image to draw for the player
4242
player_image = str(
43-
Path.cwd() / "pygame" / "images" / "alien_green_stand.png"
43+
Path.cwd() / "images" / "alien_green_stand.png"
4444
)
4545
# Load the image, preserve alpha channel for transparency
4646
self.surf = pygame.image.load(player_image).convert_alpha()
@@ -63,7 +63,7 @@ def __init__(self):
6363
super(Coin, self).__init__()
6464

6565
# Get the image to draw for the coin
66-
coin_image = str(Path.cwd() / "pygame" / "images" / "coin_gold.png")
66+
coin_image = str(Path.cwd() / "images" / "coin_gold.png")
6767

6868
# Load the image, preserve alpha channel for transparency
6969
self.surf = pygame.image.load(coin_image).convert_alpha()
@@ -101,7 +101,7 @@ def __init__(self):
101101

102102
# Setup the coin pickup sound
103103
coin_pickup_sound = pygame.mixer.Sound(
104-
str(Path.cwd() / "pygame" / "sounds" / "coin_pickup.wav")
104+
str(Path.cwd() / "sounds" / "coin_pickup.wav")
105105
)
106106

107107
# Create a player Sprite and set it's initial position

0 commit comments

Comments
 (0)