SIP/core/piece.py
2021-06-10 21:23:58 +02:00

19 lines
453 B
Python

import pygame
class Piece:
def __init__(self,x_y,weight = 0 ,mushroom = 0):
self.name = ""
self.col = x_y[0]
self.row = x_y[1]
self.img = ''
self.weight = weight
self.mushroom = mushroom
def draw(self, win, square_size):
win.blit(pygame.transform.scale(self.img, (int(square_size[0]), int(square_size[1]))), (self.col*square_size[0], self.row*square_size[1]))