small correction

This commit is contained in:
Adam Mikolajczak 2024-03-11 14:35:44 +01:00
parent 08e4b09ca4
commit 129f100ed3
2 changed files with 2 additions and 2 deletions

View File

@ -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"))

View File

@ -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"))