Private
Public Access
1
0

Add platform-specific implementations for assets, audio, WebSocket, and rendering on Desktop and WebAssembly platforms. Introduce embedded assets for WebAssembly and native file handling for Desktop. Add platform-specific chunk loading and game state synchronization.

This commit is contained in:
Sebastian Unterschütz
2026-01-04 01:25:04 +01:00
parent 85d697df19
commit 3232ee7c2f
86 changed files with 4931 additions and 486 deletions

View File

@@ -8,9 +8,10 @@ type InputMessage struct {
// State: Wo alles ist (Server -> Client)
type GameStateMessage struct {
Players map[string]*PlayerState `json:"players"` // Alle Spieler (1 bis 16)
Score float64 `json:"score"`
Multiplier int `json:"multiplier"`
Players map[string]*PlayerState `json:"players"` // Alle Spieler (1 bis 16)
Score float64 `json:"score"`
Multiplier int `json:"multiplier"`
MovingPlatforms []*MovingPlatformState `json:"moving_platforms"` // Bewegende Plattformen
}
type PlayerState struct {
@@ -18,3 +19,11 @@ type PlayerState struct {
X float64 `json:"x"`
Y float64 `json:"y"`
}
type MovingPlatformState struct {
ChunkID string `json:"chunk_id"`
ObjectIdx int `json:"object_idx"`
AssetID string `json:"asset_id"`
X float64 `json:"x"`
Y float64 `json:"y"`
}