добавил 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 -12
View File
@@ -1,23 +1,13 @@
import pygame
from loguru import logger
from modules.Game import Game
from modules.GameMenu import menu
from modules.Mathematics import start_calculating
def main():
logger.info("Игра запущена")
start_calculating()
running = True
show_menu = True
while running:
if show_menu:
menu()
show_menu = False
else:
running = False
pygame.display.flip()
game = Game()
from modules.GameMenu import difficulty
game = Game(difficulty)
game.start()