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
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m15s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user