misc changes

This commit is contained in:
eugenep 2021-05-19 16:36:06 +02:00
parent 5df7f58b48
commit 4750908236

View File

@ -40,6 +40,8 @@ class Game:
def new(self):
# initialize all variables and do all the setup for a new game
#glebokosc rozmiar masa moc szkodliwosc zabawka stan teledysk
# x0 = glebokosc x1 = rozmiar x2 = masa x3 = moc x4 = szkodliwosc x5 = zabawka x6 = stan x7 = teledysk
# oflagowac, zdetonowac, sprzedac na allegro, sprzedac na czarnym rynku, obejrzec
self.all_sprites = pg.sprite.Group()
self.walls = pg.sprite.Group()
self.mines = pg.sprite.Group()
@ -48,7 +50,7 @@ class Game:
for col, tile in enumerate(tiles):
if tile == '2':
Mine(self, col, row)
Mine.set_parameters(Mine,18,32,6,7,0,0,0,0)
Mine.set_parameters(Mine,18,32,6,7,0,1,0,0)
if tile == '3':
Bomb(self, col, row)
if tile == '4':