Reworked graphics to make it more modular
This commit is contained in:
14
dungeonbattle/bootstrap.py
Normal file
14
dungeonbattle/bootstrap.py
Normal file
@ -0,0 +1,14 @@
|
||||
from dungeonbattle.game import Game
|
||||
from dungeonbattle.display.display_manager import DisplayManager
|
||||
from dungeonbattle.term_manager import TermManager
|
||||
|
||||
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
|
||||
game.run(term_manager.screen)
|
Reference in New Issue
Block a user