setJestDomem na k
This commit is contained in:
parent
d270dfa31b
commit
cefd44bd43
4
game.py
4
game.py
@ -70,12 +70,12 @@ plansza[4, 4].setJestKontenerem(True)
|
|||||||
doms_array = ['resources/plansza/domy/dom1.png', 'resources/plansza/domy/dom2.png',
|
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']
|
'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
|
k = 0
|
||||||
for i in range(0, 4):
|
for i in range(0, 4):
|
||||||
dom = modele.Dom(temp[k], temp[k+1])
|
dom = modele.Dom(temp[k], temp[k+1])
|
||||||
dom.setImage(pygame.image.load(random.choice(doms_array)))
|
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)
|
all_sprites_list.add(dom)
|
||||||
k = k+2
|
k = k+2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user