Fight other entities while bumping them, without any weapon

This commit is contained in:
Yohann D'ANELLO
2020-11-11 01:04:30 +01:00
parent 9909b12501
commit c5e6459d37
3 changed files with 9 additions and 14 deletions

View File

@ -24,7 +24,6 @@ class KeyValues(Enum):
RIGHT = auto()
ENTER = auto()
SPACE = auto()
FIGHT = auto()
class Game:
@ -89,8 +88,6 @@ class Game:
elif key in (self.settings.KEY_UP_PRIMARY,
self.settings.KEY_UP_SECONDARY):
return KeyValues.UP
elif key == self.settings.KEY_FIGHT:
return KeyValues.FIGHT
elif key == self.settings.KEY_ENTER:
return KeyValues.ENTER
elif key == ' ':
@ -125,9 +122,6 @@ class Game:
elif key == KeyValues.RIGHT:
if self.player.move_right():
self.map.tick()
elif key == KeyValues.FIGHT:
if self.player.fight():
self.map.tick()
elif key == KeyValues.SPACE:
self.state = GameMode.MAINMENU