fix game
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m59s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m59s
This commit is contained in:
@@ -269,9 +269,10 @@ func (g *Game) Update() error {
|
||||
}
|
||||
}
|
||||
|
||||
// Musik-Start-Check (unabhängig vom State)
|
||||
// RUNNING-Übergang: AppState auf StateGame setzen + Musik starten
|
||||
if g.gameState.Status == "RUNNING" && g.lastStatus != "RUNNING" {
|
||||
log.Printf("🎮 Spiel startet! Status: %s -> %s", g.lastStatus, g.gameState.Status)
|
||||
g.appState = StateGame
|
||||
g.audio.PlayMusic()
|
||||
}
|
||||
// Musik stoppen wenn Game Over
|
||||
|
||||
Reference in New Issue
Block a user