Player can now dance! Closes #69.

This commit is contained in:
eichhornchen
2021-01-10 17:10:00 +01:00
parent dfb591d410
commit 3d48c43886
6 changed files with 42 additions and 1 deletions

View File

@ -179,6 +179,9 @@ class Game:
self.map.tick(self.player)
elif key == KeyValues.LADDER:
self.handle_ladder()
elif key == KeyValues.DANCE:
self.player.dance()
self.map.tick(self.player)
def handle_ladder(self) -> None:
"""
@ -291,6 +294,7 @@ class Game:
if self.player.equipped_main:
self.player.equipped_main.throw(direction)
def handle_key_pressed_inventory(self, key: KeyValues) -> None:
"""
In the inventory menu, we can interact with items or close the menu.