class Tree(Actor):
def __init__(self, pos, size=1):
super().__init__('tree', pos=pos)
current_dir = os.path.dirname(__file__)
image_path = 'IMAGE_PATH'
self.image = pygame.image.load(image_path)
self.image = pygame.transform.scale(self.image, (int(3 * TILE_SIZE * size), int(3 * TILE_SIZE * size)))
self.width *= size
self.height *= size

___________________________________________________________
This code doesn't work, i'm trying to fix it, can someone fix it to me? It is in python 3.X and uses pygame, pygamezero and os librarys.