drzewo_wiki #18

Merged
s473561 merged 5 commits from drzewo_wiki into master 2023-05-29 13:28:33 +02:00
3 changed files with 4 additions and 3 deletions
Showing only changes of commit 7495d47f7f - Show all commits

Binary file not shown.

View File

@ -15,7 +15,8 @@ pygame.init()
def main(): def main():
wozek = Wozek() wozek = Wozek()
paczka = Paczka('duzy', 10, 'narzedzia', False, True, False, any, any, any, any, any) #paczka = Paczka('duzy', 12, 'narzedzia', False, True, False, any, any, any, any, any)
paczka = Paczka('maly', 1, 'ogród', False, True, False, any, any, any, any, any)
ekran.lista_paczek.add(paczka) ekran.lista_paczek.add(paczka)
paczka.update_position(a_pix, b_pix) paczka.update_position(a_pix, b_pix)

View File

@ -80,9 +80,9 @@ class Paczka(pygame.sprite.Sprite):
else: tablica.append(2) else: tablica.append(2)
# waga # waga
if self.waga == 'maly': if self.waga <= 2:
tablica.append(0) tablica.append(0)
elif self.waga == 'sredni': elif self.waga <= 10:
tablica.append(1) tablica.append(1)
else: tablica.append(2) else: tablica.append(2)