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)