All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m3s
37 lines
1.4 KiB
Go
37 lines
1.4 KiB
Go
package config
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// Server Settings
|
|
Port = ":8080"
|
|
AssetPath = "./cmd/client/web/assets/assets.json"
|
|
ChunkDir = "./cmd/client/web/assets/chunks"
|
|
|
|
// Physics (angepasst für 20 TPS statt 60 TPS)
|
|
// Bei 20 TPS ist jeder Tick 3x länger (50ms statt 16.67ms)
|
|
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)
|
|
AirControlFactor = 0.4 // In der Luft: nur 40% der normalen Horizontalkontrolle (Basis)
|
|
AirControlMin = 0.15 // Minimale Air-Control bei maximaler Schwierigkeit
|
|
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
|
|
GravityMax = 2.8 // Maximale Gravitation (bei DifficultyFactor=1.0)
|
|
MaxDifficultySeconds = 180.0 // Sekunden bis maximale Schwierigkeit erreicht ist
|
|
|
|
// Gameplay
|
|
StartTime = 5 // Sekunden Countdown
|
|
TickRate = time.Millisecond * 50 // 20 TPS (war 16ms für 60 TPS)
|
|
|
|
// NATS Subjects Templates
|
|
SubjectInput = "game.room.%s.input"
|
|
SubjectState = "game.room.%s.state"
|
|
)
|