Refine player movement and physics constants for improved 20 TPS gameplay, add reusable config values, enhance button loading states, and prevent duplicate game starts. Update cache-busting version for client assets.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m3s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m3s
This commit is contained in:
@@ -10,13 +10,19 @@ const (
|
||||
|
||||
// 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
|
||||
|
||||
// Player Movement (bei 20 TPS)
|
||||
RunSpeed = 21.0 // Basis-Scroll-Geschwindigkeit
|
||||
PlayerSpeed = 33.0 // Links/Rechts Bewegung relativ zu Scroll (war 11.0 * 3)
|
||||
JumpVelocity = 24.0 // Sprunghöhe (reduziert für besseres Gefühl)
|
||||
FastFall = 45.0 // Schnell-Fall nach unten
|
||||
WallSlideMax = 9.0 // Maximale Rutsch-Geschwindigkeit an Wand
|
||||
WallClimbSpeed = 15.0 // Kletter-Geschwindigkeit
|
||||
|
||||
// Gameplay
|
||||
RunSpeed = 21.0 // war 7.0 bei 60 TPS (7.0 * 3)
|
||||
StartTime = 5 // Sekunden Countdown
|
||||
TickRate = time.Millisecond * 50 // 20 TPS (war 16ms für 60 TPS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user