def initialization(): """инициализация нужных файлов игры""" pygame.init() Viewer.init() Display.init(width=settings.WINDOW_WIDTH, height=settings.WINDOW_HEIGHT, framerate=settings.FRAMERATE) Menu.init() Skins.init() Map.init(width=settings.MAP_WIDTH, height=settings.MAP_HEIGHT)
# Caméra from view.skins import Skins # Skins pygame.init() # Initialisation de pygame Camera.init() # Initialisation de la caméra Display.init(width=config.WINDOW_WIDTH, height=config.WINDOW_HEIGHT, framerate=config.FRAMERATE) # Initialisation de la fenêtre Menu.init() # Initialisation du menu Skins.init() # Initialisation et chargement des skins Map.init(width=config.MAP_WIDTH, height=config.MAP_HEIGHT) # Initialisation du terrain de jeu Game.run() # Lancement du jeu pygame.quit() # Fermeture de pygame