Add initial project structure for "Escape From Teacher" game: server, client, level editor, and asset framework. Includes game rendering, physics, WebSocket server, NATS integration, and asset management setup.
This commit is contained in:
24
pkg/config/config.go
Normal file
24
pkg/config/config.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package config
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
// Server Settings
|
||||
Port = ":8080"
|
||||
AssetPath = "./cmd/client/assets/assets.json"
|
||||
ChunkDir = "./cmd/client/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"
|
||||
)
|
||||
Reference in New Issue
Block a user