Private
Public Access
1
0

fix game
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m49s

This commit is contained in:
Sebastian Unterschütz
2026-03-22 18:18:45 +01:00
parent ced5011718
commit 656f279a89
7 changed files with 226 additions and 87 deletions

View File

@@ -82,12 +82,14 @@ type Game struct {
lastStatus string
// Client Prediction
predictedX float64 // Vorhergesagte Position
predictedY float64
predictedVX float64
predictedVY float64
predictedGround bool
predictedOnWall bool
predictedX float64 // Vorhergesagte Position
predictedY float64
predictedVX float64
predictedVY float64
predictedGround bool
predictedOnWall bool
predictedHasDoubleJump bool // Lokale Kopie des Double-Jump-Powerups
predictedDoubleJumpUsed bool // Wurde zweiter Sprung schon verbraucht?
currentSpeed float64 // Aktuelle Scroll-Geschwindigkeit vom Server
inputSequence uint32 // Sequenznummer für Inputs
pendingInputs map[uint32]InputState // Noch nicht bestätigte Inputs