big ol refactor
This commit is contained in:
22
constants.go
22
constants.go
@ -9,4 +9,26 @@ const (
|
||||
ClientTickRate = 50 * time.Millisecond // Client runs at higher rate for smooth rendering
|
||||
MaxTickDesync = 5 // Max ticks behind before forcing resync
|
||||
DefaultPort = "6969" // Default server port
|
||||
|
||||
// Map constants
|
||||
MapWidth = 50
|
||||
MapHeight = 50
|
||||
TileSize = 32
|
||||
TileHeight = 2.0
|
||||
)
|
||||
|
||||
// UI constants
|
||||
const (
|
||||
ChatMargin = 10
|
||||
ChatHeight = 200
|
||||
MessageHeight = 20
|
||||
InputHeight = 30
|
||||
MaxMessages = 50
|
||||
)
|
||||
|
||||
// Environment variable names
|
||||
const (
|
||||
EnvSafeMode = "GOONSCAPE_SAFE_MODE"
|
||||
EnvDisableAnimations = "GOONSCAPE_DISABLE_ANIMATIONS"
|
||||
EnvDisableAudio = "GOONSCAPE_DISABLE_AUDIO"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user