Add waiting key, fixes #16

This commit is contained in:
Yohann D'ANELLO
2020-12-12 18:12:37 +01:00
parent 5eefe1937a
commit 7971a1f70e
9 changed files with 90 additions and 62 deletions

View File

@ -128,6 +128,8 @@ class Game:
elif key == KeyValues.CHAT:
# Wait for the direction of the friendly entity
self.waiting_for_friendly_key = True
elif key == KeyValues.WAIT:
self.map.tick()
def handle_friendly_entity_chat(self, key: KeyValues) -> None:
"""