сделал генерацию поля, типа разные уровни, а так же сделал вывод текста, что же тут сделалось
This commit is contained in:
+1
-2
@@ -9,7 +9,6 @@ class Game:
|
||||
config.read("conf/config.ini")
|
||||
sound = config['Settings']['sound']
|
||||
if sound == "True":
|
||||
print(sound)
|
||||
pg.mixer.init()
|
||||
pg.mixer.music.load('styles/background.mp3')
|
||||
pg.mixer.music.play(loops=-1)
|
||||
@@ -28,7 +27,7 @@ class Game:
|
||||
if event.type == pg.QUIT:
|
||||
self.running = False
|
||||
if event.type == pg.MOUSEBUTTONDOWN:
|
||||
self.swamp.get_click(event.pos)
|
||||
self.swamp.get_click(event.pos, self.screen)
|
||||
self.screen.fill((93, 101, 48))
|
||||
self.swamp.render(self.screen)
|
||||
pg.display.flip()
|
||||
|
||||
Reference in New Issue
Block a user