14 lines
278 B
Python
14 lines
278 B
Python
from container.piece import Piece
|
|
import pygame
|
|
|
|
class Tree(Piece):
|
|
def __init__(self,x_y, img = 0):
|
|
self.name = "Tree"
|
|
self.row = x_y[0]
|
|
self.col = x_y[1]
|
|
self.img = pygame.image.load(r'container\trees\tree'+str(img)+'.png')
|
|
|
|
|
|
|
|
|