init -> __init__

This commit is contained in:
Yohann D'ANELLO 2020-11-06 18:39:55 +01:00
parent a1731dc9f7
commit dc0d478d1e
2 changed files with 1 additions and 5 deletions

View File

@ -25,10 +25,7 @@ class KeyValues(Enum):
class Game: class Game:
INSTANCE = None def __init__(self) -> None:
def init(self) -> None:
Game.INSTANCE = self
self.state = GameMode.MAINMENU self.state = GameMode.MAINMENU
self.main_menu = menus.MainMenu() self.main_menu = menus.MainMenu()
self.settings = Settings() self.settings = Settings()

View File

@ -5,6 +5,5 @@ from dungeonbattle.term_manager import TermManager
if __name__ == "__main__": if __name__ == "__main__":
with TermManager() as term_manager: with TermManager() as term_manager:
game = Game() game = Game()
game.init()
game.new_game() game.new_game()
game.run(term_manager.screen) game.run(term_manager.screen)