squirrel-battle/dungeonbattle/bootstrap.py

16 lines
465 B
Python
Raw Normal View History

from dungeonbattle.game import Game
from dungeonbattle.display.display_manager import DisplayManager
from dungeonbattle.term_manager import TermManager
2020-11-10 19:34:22 +00:00
class Bootstrap:
@staticmethod
def run_game():
with TermManager() as term_manager:
game = Game()
game.new_game()
display = DisplayManager(term_manager.screen, game)
game.display_refresh = display.refresh
2020-11-10 19:34:22 +00:00
game.run(term_manager.screen)