Navigate through inventory menu

This commit is contained in:
Yohann D'ANELLO 2020-12-04 16:31:15 +01:00
parent a68b3a6d08
commit 0da7486750
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ class Game:
"""
if key == KeyValues.SPACE or key == KeyValues.INVENTORY:
self.state = GameMode.PLAY
elif key == KeyValues.UP:
self.inventory_menu.go_up()
elif key == KeyValues.DOWN:
self.inventory_menu.go_down()
def handle_key_pressed_main_menu(self, key: KeyValues) -> None:
"""