make tutorial mode working with new input handling

This commit is contained in:
chrys 2016-09-25 20:19:32 +02:00
parent b50e4fde73
commit e02b33f653

View File

@ -43,13 +43,14 @@ class fenrir():
# self.environment['runtime']['inputManager'].isFenrirKeyPressed()) and \ # self.environment['runtime']['inputManager'].isFenrirKeyPressed()) and \
# not self.environment['runtime']['commandManager'].isCommandQueued(): # not self.environment['runtime']['commandManager'].isCommandQueued():
if not (self.wasCommand or self.environment['runtime']['inputManager'].isFenrirKeyPressed()): if not (self.wasCommand or self.environment['runtime']['inputManager'].isFenrirKeyPressed() or self.environment['generalInformation']['tutorialMode']):
self.environment['runtime']['inputManager'].writeEventBuffer() self.environment['runtime']['inputManager'].writeEventBuffer()
if self.environment['runtime']['inputManager'].noKeyPressed(): if self.environment['runtime']['inputManager'].noKeyPressed():
if self.wasCommand: if self.wasCommand:
print('mache falsch')
self.wasCommand = False self.wasCommand = False
self.environment['runtime']['inputManager'].clearEventBuffer() self.environment['runtime']['inputManager'].clearEventBuffer()
if self.environment['generalInformation']['tutorialMode']:
self.environment['runtime']['inputManager'].clearEventBuffer()
self.environment['input']['prevDeepestInput'] = [] self.environment['input']['prevDeepestInput'] = []
self.environment['runtime']['screenManager'].update() self.environment['runtime']['screenManager'].update()