zmiany w definicji klas w pliku modele.py

This commit is contained in:
Adam Osiowy 2020-03-29 16:46:10 +02:00
parent 1cc7c44a0b
commit 55c0218bca

View File

@ -50,6 +50,7 @@ class Kontener(pygame.sprite.Sprite):
self.x = x self.x = x
self.y = y self.y = y
pygame.sprite.Sprite.__init__(self) pygame.sprite.Sprite.__init__(self)
self.image = pygame.image.__init__()
self.rect = pygame.Rect(self.x * WIDTH + MARGIN * self.x + MARGIN, self.y * HEIGHT + MARGIN * self.y + MARGIN, self.rect = pygame.Rect(self.x * WIDTH + MARGIN * self.x + MARGIN, self.y * HEIGHT + MARGIN * self.y + MARGIN,
WIDTH, HEIGHT) WIDTH, HEIGHT)