Dodanie paczki na krate

This commit is contained in:
Vladyslav Serhiienko 2022-06-08 22:53:31 +02:00
parent aeb5bf3bc3
commit 10f2235a71

View File

@ -83,7 +83,10 @@ class Krata(Obserwowany):
osoba_ikona = pygame.transform.scale(pygame.image.load(os.path.join('Ikony', 'dywan.png')),
(BOK_AGENTA1, BOK_AGENTA1))
self.okno.blit(osoba_ikona, [start, gora, self.bokPola, self.bokPola])
elif kolor_pola == PACZKA:
osoba_ikona = pygame.transform.scale(pygame.image.load(os.path.join('Ikony', 'paczka.png')),
(BOK_AGENTA1, BOK_AGENTA1))
self.okno.blit(osoba_ikona, [start, gora, self.bokPola, self.bokPola])
else:
pygame.draw.rect(self.okno, kolor_pola, [start, gora, self.bokPola, self.bokPola])