diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
commit | 773ce84f4bf559337e132edd7fcce02a0a2598fd (patch) | |
tree | 5fd0b452b459cc5a5b6a1ed98f2d7b9af950864d /engine/config/constants.ts | |
parent | dec7b614d895a1b507137e4a96a8999ff63aa179 (diff) | |
download | jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.tar.gz jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.zip |
prettier formatting
Diffstat (limited to 'engine/config/constants.ts')
-rw-r--r-- | engine/config/constants.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/config/constants.ts b/engine/config/constants.ts index e93986b..45b0301 100644 --- a/engine/config/constants.ts +++ b/engine/config/constants.ts @@ -1,4 +1,4 @@ -import { Action } from "../interfaces"; +import { Action } from '../interfaces'; export namespace KeyConstants { export const KeyActions: Record<string, Action> = { @@ -10,11 +10,13 @@ export namespace KeyConstants { w: Action.JUMP, ArrowUp: Action.JUMP, + + ' ': Action.JUMP }; // value -> [key] from KeyActions export const ActionKeys: Map<Action, string[]> = Object.keys( - KeyActions, + KeyActions ).reduce((acc: Map<Action, string[]>, key) => { const action = KeyActions[key]; |