dwie przykładowe paczki
This commit is contained in:
parent
230b94064b
commit
7495d47f7f
Binary file not shown.
3
main.py
3
main.py
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user