From cefd44bd43b8d5d0b6faaa22b287395ab9d232e4 Mon Sep 17 00:00:00 2001 From: Bowske Date: Fri, 3 Apr 2020 18:36:23 +0200 Subject: [PATCH] setJestDomem na k --- game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 29c735c..8f3925f 100644 --- a/game.py +++ b/game.py @@ -70,12 +70,12 @@ plansza[4, 4].setJestKontenerem(True) doms_array = ['resources/plansza/domy/dom1.png', 'resources/plansza/domy/dom2.png', 'resources/plansza/domy/dom3.png', 'resources/plansza/domy/dom4.png', 'resources/plansza/domy/dom5.png'] -temp = random.sample(range(5, 14), 8) +temp = random.sample(range(5, 14)) k = 0 for i in range(0, 4): dom = modele.Dom(temp[k], temp[k+1]) dom.setImage(pygame.image.load(random.choice(doms_array))) - plansza[temp[0], temp[1]].setJestDomem(True) + plansza[temp[k], temp[k+1]].setJestDomem(True) all_sprites_list.add(dom) k = k+2