Private
Public Access
1
0

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:
Sebastian Unterschütz
2026-01-01 15:21:50 +01:00
parent 3099ac42c0
commit 4b2995846e
65 changed files with 1943 additions and 0 deletions

24
pkg/config/config.go Normal file
View 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"
)