Private
Public Access
1
0

Add PlayerCode for enhanced score tracking and host validation logic in cooperative mode. Optimize UI for mobile devices with new responsive styles.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m27s

This commit is contained in:
Sebastian Unterschütz
2026-01-04 17:34:19 +01:00
parent 8f49a691f7
commit 400a7e752b
6 changed files with 102 additions and 29 deletions

View File

@@ -70,6 +70,7 @@ type Room struct {
Countdown int
NextStart time.Time
HostID string
HostPlayerCode string // PlayerCode des Hosts (für Coop-Score Submission)
TeamName string // Name des Teams (vom Host gesetzt)
CollectedCoins map[string]bool // Key: "chunkID_objectIndex"
CollectedPowerups map[string]bool // Key: "chunkID_objectIndex"
@@ -790,6 +791,7 @@ func (r *Room) Broadcast() {
TimeLeft: r.Countdown,
WorldChunks: r.ActiveChunks,
HostID: r.HostID,
HostPlayerCode: r.HostPlayerCode,
TeamName: r.TeamName,
ScrollX: r.GlobalScrollX,
CollectedCoins: r.CollectedCoins,