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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user