diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-12 13:49:16 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-12 13:49:16 -0600 |
commit | c6e9baa0009f7cce0f6ff156a3957ef04a8cb684 (patch) | |
tree | 9766a4a33ad1c86aa71a5f92daf8917f3e5f5eed /engine/config/constants.ts | |
parent | b67ffb57c1bf6e9628339a3f43c71ccebdb46136 (diff) | |
download | jumpstorm-c6e9baa0009f7cce0f6ff156a3957ef04a8cb684.tar.gz jumpstorm-c6e9baa0009f7cce0f6ff156a3957ef04a8cb684.zip |
the great engine refactor
Diffstat (limited to 'engine/config/constants.ts')
-rw-r--r-- | engine/config/constants.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/config/constants.ts b/engine/config/constants.ts index 9a3169b..3d536d3 100644 --- a/engine/config/constants.ts +++ b/engine/config/constants.ts @@ -11,12 +11,12 @@ export namespace KeyConstants { }; export const ActionKeys: Map<Action, string[]> = Object.keys( - KeyActions + KeyActions, ).reduce((acc: Map<Action, string[]>, key) => { const action = KeyActions[key]; if (acc.has(action)) { - acc.get(action).push(key); + acc.get(action)?.push(key); return acc; } @@ -29,8 +29,8 @@ export namespace PhysicsConstants { export const MAX_JUMP_TIME_MS = 150; export const GRAVITY = 0.0075; export const PLAYER_MOVE_VEL = 1; - export const PLAYER_JUMP_ACC = -0.01; - export const PLAYER_JUMP_INITIAL_VEL = -0.9; + export const PLAYER_JUMP_ACC = -0.008; + export const PLAYER_JUMP_INITIAL_VEL = -1; } export namespace Miscellaneous { |