Fixed instant crash in last commit by adding valid testdata.yml, and fixed testdata.yml parsing.
This commit is contained in:
parent
9cda61a895
commit
aba0014e27
4 changed files with 39 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue