16 lines
414 B
Python
16 lines
414 B
Python
import os
|
|
|
|
import pygame
|
|
|
|
from core.piece import Piece
|
|
|
|
|
|
class Tree(Piece):
|
|
def __init__(self, x_y, img=0):
|
|
super().__init__(x_y)
|
|
self.name = "Tree"
|
|
self.col = x_y[0]
|
|
self.row = x_y[1]
|
|
self.img = pygame.image.load(r'core' + os.path.sep + 'resources' + os.path.sep + 'trees' +
|
|
os.path.sep + 'tree' + str(img) + '.png')
|