Quit the game on Escape

This commit is contained in:
Eryn Wells 2022-05-12 20:40:46 -07:00
parent ee915bd7c1
commit 2b367c7bb6

View file

@ -134,6 +134,8 @@ class EventHandler(tcod.event.EventDispatch[Action]):
action = BumpAction(hero, Direction.NorthEast)
case tcod.event.KeySym.y:
action = BumpAction(hero, Direction.NorthWest)
case tcod.event.KeySym.ESCAPE:
action = ExitAction(hero)
case tcod.event.KeySym.SPACE:
action = RegenerateRoomsAction(hero)
case tcod.event.KeySym.PERIOD: