Files
LilGuy/internal/config/constants.go

61 lines
910 B
Go

package config
import "time"
// Animation speeds
const (
NormalAnimSpeed = 0.03
IdleAnimSpeed = 0.1
SprintAnimSpeed = 0.01
JumpingAnimSpeed = 0.005
)
// Physics
const (
Gravity = 1200.0
JumpStrength = -450.0
MaxFallSpeed = 800.0
GroundFriction = 0.85
AirFriction = 0.95
)
// Gameplay
const (
SprintSpeedMultiplier = 1.8
SprintRecoveryThreshold = 0.2
ExhaustedThreshold = 0.2
StaminaLowThreshold = 0.2
)
// FPS Monitoring
const (
FPSWarnThreshold = 0.85
FPSPoorThreshold = 0.6
FPSSampleWindow = time.Second
TargetTPS = 60
)
// Sprite
const (
AnimFrameWrap = 4096
HeroSpriteScale = 0.175
FixedSpriteHeight = 329.0
FixedSpriteWidth = 315.0
)
// Notifications
const (
SaveNotificationDuration = 2 * time.Second
)
// Portal
const (
PortalThickness = 20.0
PortalTransitionCooldown = 0.5
)
// World
const (
GroundHeight = 16.0
)