Private
Public Access
1
0

Add leaderboard functionality with Redis integration for scores. This includes a global leaderboard system, server-side score submission handling, and real-time player ranking updates. Refactor and improve collision logic and game state management for better player experience.

This commit is contained in:
Sebastian Unterschütz
2026-01-01 19:23:09 +01:00
parent 5e6b8a2304
commit de64329ce4
12 changed files with 768 additions and 43 deletions

View File

@@ -50,6 +50,9 @@ func (g *Game) ApplyInput(input InputState) {
// ReconcileWithServer gleicht lokale Prediction mit Server-State ab
func (g *Game) ReconcileWithServer(serverState game.PlayerState) {
g.predictionMutex.Lock()
defer g.predictionMutex.Unlock()
// Server-bestätigte Sequenz
g.lastServerSeq = serverState.LastInputSeq