From c6e9baa0009f7cce0f6ff156a3957ef04a8cb684 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 12 Aug 2023 13:49:16 -0600 Subject: the great engine refactor --- engine/config/constants.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/config/constants.ts') 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 = Object.keys( - KeyActions + KeyActions, ).reduce((acc: Map, 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 { -- cgit v1.2.3-70-g09d2