From cab0d6e99d96f621e6efcf1ed6b5537cf122ad96 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sun, 15 Feb 2026 13:17:36 -0500 Subject: Wall sliding/jumping --- src/constants.odin | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/constants.odin') diff --git a/src/constants.odin b/src/constants.odin index 2875f4c..a25f1f9 100644 --- a/src/constants.odin +++ b/src/constants.odin @@ -18,6 +18,13 @@ PLAYER_DASH_SPEED :: 500 PLAYER_DASH_TIME :: 0.15 PLAYER_DASH_COOLDOWN :: 0.3 +PLAYER_WALL_SLIDE_SPEED :: 100 + +PLAYER_WALL_JUMP_BUFFER :: 0.05 +PLAYER_WALL_JUMP_TIME :: 0.1 // How long the player moves away from the wall + // before control is given back +PLAYER_WALL_JUMP_FORCE :: 150 // How fast the player jumps away from the wall + PLAYER_GUN_HEIGHT :: 0 PLAYER_GUN_DIST :: 7 // how far out to hold the gun PLAYER_GUN_KICKBACK :: 4 // how far to move the gun back when you shoot -- cgit v1.3-2-g0d8e