Skip to content

Commit

Permalink
rename media to data
Browse files Browse the repository at this point in the history
  • Loading branch information
nomnivore committed Mar 10, 2022
1 parent ad3da9c commit 34435b1
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def __init__(self, game: AsteroidsGame, player=True):
self.screen = game.screen
self.screen_rect = self.screen.get_rect()

image = pg.image.load("media/ast-ship.png").convert_alpha()
image = pg.image.load("data/ast-ship.png").convert_alpha()
self.image = pg.transform.scale(image, self.settings.ship_size)
image_move = pg.image.load("media/ast-ship-moving.png").convert_alpha()
image_move = pg.image.load("data/ast-ship-moving.png").convert_alpha()
self.image_move = pg.transform.scale(
image_move, self.settings.ship_size)
self.original_image = self.image.copy()
Expand Down
2 changes: 1 addition & 1 deletion space_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, game: AsteroidsGame, rock_pos: Tuple[int, int] = None,
self.settings = game.settings
self.size = rock_size

image = pg.image.load(f"media/ast-rock-{self.size}.png")
image = pg.image.load(f"data/ast-rock-{self.size}.png")
self.image = pg.transform.scale(image,
self.settings.rocks_size[self.size-1])

Expand Down

0 comments on commit 34435b1

Please sign in to comment.