From 10f2235a71012cbc747a58a3b823322781abb6c2 Mon Sep 17 00:00:00 2001 From: Vladyslav Serhiienko Date: Wed, 8 Jun 2022 22:53:31 +0200 Subject: [PATCH] Dodanie paczki na krate --- krata.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/krata.py b/krata.py index 80200bf..c013afb 100644 --- a/krata.py +++ b/krata.py @@ -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])