From 9a97f927b2bb5e4ba307f4ec46a4e66b6d3af5d6 Mon Sep 17 00:00:00 2001 From: Frank Force Date: Sun, 24 Nov 2024 21:36:04 -0600 Subject: [PATCH] simplify --- examples/platformer/gameCharacter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platformer/gameCharacter.js b/examples/platformer/gameCharacter.js index 3eef3d35..36ff1ee4 100644 --- a/examples/platformer/gameCharacter.js +++ b/examples/platformer/gameCharacter.js @@ -178,7 +178,7 @@ class Character extends GameObject // apply movement acceleration and clamp const maxCharacterSpeed = .2; - this.velocity.x = clamp(this.velocity.x + moveInput.x * .042, -maxCharacterSpeed, maxCharacterSpeed); + this.velocity.x = clamp(this.velocity.x + moveInput.x * .04, -maxCharacterSpeed, maxCharacterSpeed); // track last pos for ladder collision code this.lastPos = this.pos.copy();