small correction
This commit is contained in:
parent
08e4b09ca4
commit
129f100ed3
@ -23,7 +23,7 @@ class Tile(pygame.sprite.Sprite):
|
|||||||
def set_type(self, type):
|
def set_type(self, type):
|
||||||
self.type = type
|
self.type = type
|
||||||
if self.type == 'grass':
|
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
|
# you can set TILE_SIZE in the .env file to adjust the window size
|
||||||
load_dotenv(find_dotenv())
|
load_dotenv(find_dotenv())
|
||||||
TILE_SIZE = int(os.getenv("TILE_SIZE"))
|
TILE_SIZE = int(os.getenv("TILE_SIZE"))
|
||||||
|
@ -6,7 +6,7 @@ class Tractor(pygame.sprite.Sprite):
|
|||||||
def __init__(self, field):
|
def __init__(self, field):
|
||||||
super().__init__
|
super().__init__
|
||||||
self.field = field
|
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
|
# you can set TILE_SIZE in the .env to adjust window size
|
||||||
load_dotenv(find_dotenv())
|
load_dotenv(find_dotenv())
|
||||||
TILE_SIZE = int(os.getenv("TILE_SIZE"))
|
TILE_SIZE = int(os.getenv("TILE_SIZE"))
|
||||||
|
Loading…
Reference in New Issue
Block a user