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 committed 2026-01-01 19:23:09 +01:00
1 parent 5e6b8a2304
commit de64329ce4
12 files changed
+768 -43

No files matched your search

+3
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