adventure-game #3

Open
Kenwood wants to merge 80 commits from adventure-game into master
1 changed files with 7 additions and 3 deletions
Showing only changes of commit 0c1770ef0a - Show all commits

View File

@ -31,11 +31,15 @@ class AdventureGame(npyscreen.NPSAppManaged):
# Setup logging
self.log = logging
self.log.basicConfig(filename=self.mainPath / 'logs/AdventureGame.log', filemode='w', level=logging.DEBUG)
self.log.basicConfig(filename=self.mainPath / 'logs/AdventureGame.log',
filemode='w',
level=logging.DEBUG)
self.log.info('Logging started!')
# Parse world
# parse this data first (since it includes graphics for the main menu
self.gamelib = parse(
self.mainPath / 'gamedata/gamelib.yaml') # parse this data first (since it includes graphics for the main menu
self.mainPath / 'gamedata/gamelib.yaml')
self.log.debug('Gamelib at {0}'.format(self.mainPath / 'gamedata/gamelib.yaml'))
# Intalize the player as none, the player will be created in the main menu.
self.player = None