Adjust physics constants and movement logic for 20 TPS, scale velocities and gravity by a factor of 3, and update cache-busting version for client assets.
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m0s

This commit is contained in:
Sebastian Unterschütz committed 2026-01-05 19:22:17 +01:00
1 parent daf8261aa9
commit 0ae6c58eb9
6 files changed
+22 -18

No files matched your search

+4 -3
View File
@@ -21,7 +21,8 @@ func (g *Game) ApplyInput(input InputState) {
}
// Geschwindigkeit skaliert mit Joystick-Intensität
speed := config.RunSpeed + (moveX * 4.0)
// war 4.0 bei 60 TPS (4.0 * 3 = 12.0)
speed := config.RunSpeed + (moveX * 12.0)
g.predictedX += speed
// Gravitation
@@ -32,12 +33,12 @@ func (g *Game) ApplyInput(input InputState) {
// Fast Fall
if input.Down {
g.predictedVY = 15.0
g.predictedVY = 45.0 // war 15.0 bei 60 TPS (15.0 * 3)
}
// Sprung
if input.Jump && g.predictedGround {
g.predictedVY = -14.0
g.predictedVY = -42.0 // war -14.0 bei 60 TPS (-14.0 * 3)
g.predictedGround = false
}