Fixed instant crash in last commit by adding valid testdata.yml, and fixed testdata.yml parsing.

This commit is contained in:
Patrick Marsee 2019-10-14 12:02:13 -04:00
parent 9cda61a895
commit aba0014e27
4 changed files with 39 additions and 14 deletions

View file

@ -34,10 +34,10 @@ class GameShell(Shell):
self.gameTitle = data['title']
self.startLevel = 'testing/test1.yml' # should be changed for actual games
if 'startLevel' in data:
self.gameTitle = data['startLevel']
self.startLevel = data['startLevel']
self.openingText = '{}\nIn Development'
if 'openingText' in data:
self.gameTitle = data['openingText']
self.openingText = data['openingText']
self.ps2 = '?> '
self.__inGame = False