Private
Public Access
1
0

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.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m0s

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

View File

@@ -8,15 +8,17 @@ const (
AssetPath = "./cmd/client/web/assets/assets.json"
ChunkDir = "./cmd/client/web/assets/chunks"
// Physics
Gravity = 0.5
MaxFall = 15.0
// Physics (angepasst für 20 TPS statt 60 TPS)
// Bei 20 TPS ist jeder Tick 3x länger (50ms statt 16.67ms)
// Geschwindigkeiten müssen mit 3 multipliziert werden
Gravity = 1.5 // war 0.5 bei 60 TPS
MaxFall = 45.0 // war 15.0 bei 60 TPS
TileSize = 64
// Gameplay
RunSpeed = 7.0
RunSpeed = 21.0 // war 7.0 bei 60 TPS (7.0 * 3)
StartTime = 5 // Sekunden Countdown
TickRate = time.Millisecond * 16 // ~60 FPS
TickRate = time.Millisecond * 50 // 20 TPS (war 16ms für 60 TPS)
// NATS Subjects Templates
SubjectInput = "game.room.%s.input"