sdl renderer working as before

This commit is contained in:
Lukas Nöllemeyer 2024-08-19 16:33:59 +02:00
parent ef3f64bfa2
commit 6cfa795463
5 changed files with 10 additions and 12 deletions

View file

@ -76,8 +76,6 @@ class MainScreen(Screen):
match event:
case tcod.event.KeyDown(sym=sym) if sym in ACTION_KEYS:
_handle_action(player)
case tcod.event.Quit():
raise SystemExit()
case tcod.event.KeyDown(sym=sym) if sym in DIRECTION_KEYS:
dir = DIRECTION_KEYS[sym]
return _handle_movement(player, map, dir)