Sztuczna_Inteligencja/gridElement.py
2019-03-20 20:42:55 +01:00

12 lines
336 B
Python

import pygame
class GridEleemnt(object):
def __init__(self,x,y,game):
self.game = game
self.x = x
self.y = y
self.image = pygame.image.load("./Images/plytka.png")
def draw(self):
self.rect = pygame.Rect(self.x, self.y, 50, 50)
self.game.screen.blit(self.image, (self.x, self.y))