25 lines
477 B
Go
25 lines
477 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// Server Settings
|
|
Port = ":8080"
|
|
AssetPath = "./cmd/client/web/assets/assets.json"
|
|
ChunkDir = "./cmd/client/web/assets/chunks"
|
|
|
|
// Physics
|
|
Gravity = 0.5
|
|
MaxFall = 15.0
|
|
TileSize = 64
|
|
|
|
// Gameplay
|
|
RunSpeed = 7.0
|
|
StartTime = 5 // Sekunden Countdown
|
|
TickRate = time.Millisecond * 16 // ~60 FPS
|
|
|
|
// NATS Subjects Templates
|
|
SubjectInput = "game.room.%s.input"
|
|
SubjectState = "game.room.%s.state"
|
|
)
|