summaryrefslogtreecommitdiff
path: root/test-client/movement.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-21 12:49:39 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:26:47 +0200
commit1c9ddc8b8753696062bc999a5e5cf8620e518b11 (patch)
tree41ae89eb296f37eacba0a296bfc7b23f019f04a0 /test-client/movement.ts
parent1ab1fd8cc03678ac180673884eff098821bcecd2 (diff)
downloadhurrycurry-1c9ddc8b8753696062bc999a5e5cf8620e518b11.tar
hurrycurry-1c9ddc8b8753696062bc999a5e5cf8620e518b11.tar.bz2
hurrycurry-1c9ddc8b8753696062bc999a5e5cf8620e518b11.tar.zst
move collision force and customer speed adjusted
Diffstat (limited to 'test-client/movement.ts')
-rw-r--r--test-client/movement.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/movement.ts b/test-client/movement.ts
index 883a64ec..88c47c33 100644
--- a/test-client/movement.ts
+++ b/test-client/movement.ts
@@ -42,7 +42,7 @@ function collide_player(p: PlayerData, dt: number) {
if (d < 0.01) continue
if (d >= PLAYER_SIZE * 2) continue
const norm = normalize(diff);
- const f = 1 / (1 + d)
+ const f = 100 / (1 + d)
p.vel.x += norm.x * f * dt
p.vel.y += norm.y * f * dt
}