From e36ef0b93bb2bf4945b7760fa172cd5f5f06b720 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 25 Jun 2024 21:28:05 +0200 Subject: Tweak player speed and acceleration --- server/src/customer/movement.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src') diff --git a/server/src/customer/movement.rs b/server/src/customer/movement.rs index 681b2b67..3fcf37aa 100644 --- a/server/src/customer/movement.rs +++ b/server/src/customer/movement.rs @@ -20,7 +20,7 @@ use glam::{IVec2, Vec2}; use std::collections::HashSet; const PLAYER_SIZE: f32 = 0.4; -const PLAYER_SPEED: f32 = 25.; +const PLAYER_SPEED: f32 = 65.; pub const PLAYER_SPEED_LIMIT: f32 = f32::INFINITY; // 10.; pub struct MovementBase { @@ -38,7 +38,7 @@ impl MovementBase { let rot = self.facing.x.atan2(self.facing.y); self.vel += direction * dt * PLAYER_SPEED; self.position += self.vel * dt; - self.vel = self.vel * (-dt * 5.).exp(); + self.vel = self.vel * (-dt * 15.).exp(); collide_player(self, map); PacketS::Position { -- cgit v1.2.3-70-g09d2