summaryrefslogtreecommitdiff
path: root/src/engine/config/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/config/constants.ts')
-rw-r--r--src/engine/config/constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/config/constants.ts b/src/engine/config/constants.ts
index 288513a..c6b592e 100644
--- a/src/engine/config/constants.ts
+++ b/src/engine/config/constants.ts
@@ -10,15 +10,19 @@ export enum Action {
export namespace KeyConstants {
export const KeyActions: Record<string, Action> = {
a: Action.MOVE_LEFT,
+ h: Action.MOVE_LEFT,
arrowleft: Action.MOVE_LEFT,
d: Action.MOVE_RIGHT,
+ l: Action.MOVE_RIGHT,
arrowright: Action.MOVE_RIGHT,
w: Action.MOVE_UP,
+ k: Action.MOVE_UP,
arrowup: Action.MOVE_UP,
s: Action.MOVE_DOWN,
+ j: Action.MOVE_DOWN,
arrowdown: Action.MOVE_DOWN,
" ": Action.INTERACT,
@@ -56,4 +60,5 @@ export namespace Miscellaneous {
export const GRID_CELL_HEIGHT = Math.floor(HEIGHT / GRID_ROWS);
export const MODAL_ID = "modal";
+ export const CANVAS_ID = "canvas";
}