From 88ede0c58595028f8cc1d4e618e00954f5758269 Mon Sep 17 00:00:00 2001 From: Gareth Adams Date: Tue, 3 May 2022 23:43:49 +0100 Subject: [PATCH] Jump automatically when maxJumpTimer is reached the full game jumps you automatically when you've held the button down long enough. not an issue for bot players but makes the game feel more accurate for human players --- Player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Player.js b/Player.js index 7b31f26..4a26d31 100644 --- a/Player.js +++ b/Player.js @@ -779,6 +779,8 @@ class Player { UpdateJumpTimer() { if (this.isOnGround && this.jumpHeld && this.jumpTimer < maxJumpTimer) { this.jumpTimer += 1 + } else if (this.jumpTimer >= maxJumpTimer) { + this.Jump(); } }