diff --git a/src/tile.py b/src/tile.py index 2082e45b..b4b9e577 100644 --- a/src/tile.py +++ b/src/tile.py @@ -23,7 +23,7 @@ class Tile(pygame.sprite.Sprite): def set_type(self, type): self.type = type if self.type == 'grass': - self.image = pygame.image.load('src/images/grass.png').convert() + self.image = pygame.image.load("images/grass.png").convert() # you can set TILE_SIZE in the .env file to adjust the window size load_dotenv(find_dotenv()) TILE_SIZE = int(os.getenv("TILE_SIZE")) diff --git a/src/tractor.py b/src/tractor.py index e332c53a..1cc10031 100644 --- a/src/tractor.py +++ b/src/tractor.py @@ -6,7 +6,7 @@ class Tractor(pygame.sprite.Sprite): def __init__(self, field): super().__init__ self.field = field - self.image = pygame.image.load('src/images/tractor.png').convert_alpha() + self.image = pygame.image.load('images/tractor.png').convert_alpha() # you can set TILE_SIZE in the .env to adjust window size load_dotenv(find_dotenv()) TILE_SIZE = int(os.getenv("TILE_SIZE"))