fix game
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 2m0s
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 2m0s
This commit is contained in:
@@ -245,6 +245,11 @@ func (g *Game) UpdateGame() {
|
||||
|
||||
g.SendInputWithSequence(input)
|
||||
|
||||
// Solo: Lokale Prüfung der Runde (Tod/Score)
|
||||
if g.gameMode == "solo" {
|
||||
g.checkSoloRound()
|
||||
}
|
||||
|
||||
// Trail: store predicted position every physics step
|
||||
g.trail = append(g.trail, trailPoint{X: g.predictedX, Y: g.predictedY})
|
||||
if len(g.trail) > 8 {
|
||||
|
||||
Reference in New Issue
Block a user