1
0
Fork 0

feat(music): add gameplay background music

This commit is contained in:
Henrik Hautakoski 2025-11-09 06:58:26 +01:00
parent eb7486f57c
commit 562d47a723
2 changed files with 4 additions and 0 deletions

View file

@ -54,9 +54,12 @@ func (gp *GamePlay) Enter() {
gp.nextShape = gp.shapeQueue.Next()
gp.SpawnShape()
gp.lineClearAnimation.Reset()
audio.PlayLooped(assets.SFX_MUSIC)
}
func (GamePlay) Exit() {
audio.Stop(assets.SFX_MUSIC)
}
func (gp *GamePlay) SpawnShape() {