Quit the game on Escape
This commit is contained in:
parent
ee915bd7c1
commit
2b367c7bb6
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ class EventHandler(tcod.event.EventDispatch[Action]):
|
||||||
action = BumpAction(hero, Direction.NorthEast)
|
action = BumpAction(hero, Direction.NorthEast)
|
||||||
case tcod.event.KeySym.y:
|
case tcod.event.KeySym.y:
|
||||||
action = BumpAction(hero, Direction.NorthWest)
|
action = BumpAction(hero, Direction.NorthWest)
|
||||||
|
case tcod.event.KeySym.ESCAPE:
|
||||||
|
action = ExitAction(hero)
|
||||||
case tcod.event.KeySym.SPACE:
|
case tcod.event.KeySym.SPACE:
|
||||||
action = RegenerateRoomsAction(hero)
|
action = RegenerateRoomsAction(hero)
|
||||||
case tcod.event.KeySym.PERIOD:
|
case tcod.event.KeySym.PERIOD:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue