Private
Public Access
1
0

Adjust physics constants for better 20 TPS gameplay feel, refine smoothing and correction thresholds, and update cache-busting version for client assets.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m15s

This commit is contained in:
Sebastian Unterschütz
2026-01-05 19:54:07 +01:00
parent 0ae6c58eb9
commit dc5136ca21
6 changed files with 12 additions and 11 deletions

View File

@@ -261,12 +261,12 @@ func (r *Room) HandleInput(input game.ClientInput) {
switch input.Type {
case "JUMP":
if p.OnGround {
p.VY = -42.0 // war -14.0 bei 60 TPS (-14.0 * 3)
p.VY = -30.0 // Reduziert für besseres Spielgefühl bei 20 TPS
p.OnGround = false
p.DoubleJumpUsed = false // Reset double jump on ground jump
} else if p.HasDoubleJump && !p.DoubleJumpUsed {
// Double Jump in der Luft
p.VY = -42.0 // war -14.0 bei 60 TPS (-14.0 * 3)
p.VY = -30.0 // Reduziert für besseres Spielgefühl bei 20 TPS
p.DoubleJumpUsed = true
log.Printf("⚡ %s verwendet Double Jump!", p.Name)
}