Dodanie paczki na krate
This commit is contained in:
parent
aeb5bf3bc3
commit
10f2235a71
5
krata.py
5
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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user