diff --git a/src/game/TerrainTile.py b/src/game/TerrainTile.py index e5b7db7..9af1c78 100644 --- a/src/game/TerrainTile.py +++ b/src/game/TerrainTile.py @@ -4,7 +4,7 @@ import pygame class TerrainTile(pygame.sprite.Sprite): - def __init__(self, x, y, texture, tileSize): + def __init__(self, x, y, texture, tileSize, cost): super().__init__() terrainTexturesPath = Path("./data/images/terrain").resolve() self.image = pygame.image.load(str(terrainTexturesPath / texture)).convert() @@ -14,5 +14,5 @@ class TerrainTile(pygame.sprite.Sprite): self.y = y self.rect.x = x * tileSize self.rect.y = y * tileSize + self.cost = cost - # TODO : rozne koszty map tilesów