добавил requirements.txt, config.ini, переработал GameMenu.py

This commit is contained in:
2022-12-24 16:25:43 +07:00
parent d1160a66e0
commit fbb32c50d9
7 changed files with 41 additions and 33 deletions
+2 -2
View File
@@ -3,11 +3,11 @@ from modules.Board import Board
class Game:
def __init__(self):
def __init__(self, difficulty):
pygame.init()
size = 500, 500
self.screen = pygame.display.set_mode(size)
pygame.display.set_caption('Чёрное в белое и наоборот')
pygame.display.set_caption(difficulty)
self.board = Board(5, 7, self.screen)
self.board.set_view(100, 100, 50)
self.running = True