First steps

This commit is contained in:
staubsauger 2024-08-16 19:58:37 +02:00
parent 81190c687e
commit 1e731f5a80
191 changed files with 65 additions and 7 deletions

View file

@ -4,6 +4,8 @@ from typing import Final
from tcod.event import KeySym
from game.world_tools import unlock_door
DIRECTION_KEYS: Final = {
# Arrow keys
KeySym.LEFT: (-1, 0),
@ -34,3 +36,7 @@ DIRECTION_KEYS: Final = {
KeySym.u: (1, -1),
KeySym.n: (1, 1),
}
ACTION_KEYS: Final = {
KeySym.SPACE: unlock_door
}