From dc0d478d1ebfadccb4f49bbe73fa10df424c52f8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 6 Nov 2020 18:39:55 +0100 Subject: [PATCH] init -> __init__ --- dungeonbattle/game.py | 5 +---- main.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dungeonbattle/game.py b/dungeonbattle/game.py index 8fdbfd4..b1e8bc6 100644 --- a/dungeonbattle/game.py +++ b/dungeonbattle/game.py @@ -25,10 +25,7 @@ class KeyValues(Enum): class Game: - INSTANCE = None - - def init(self) -> None: - Game.INSTANCE = self + def __init__(self) -> None: self.state = GameMode.MAINMENU self.main_menu = menus.MainMenu() self.settings = Settings() diff --git a/main.py b/main.py index 56cc77c..2e44d9d 100755 --- a/main.py +++ b/main.py @@ -5,6 +5,5 @@ from dungeonbattle.term_manager import TermManager if __name__ == "__main__": with TermManager() as term_manager: game = Game() - game.init() game.new_game() game.run(term_manager.screen)