feat(music): add gameplay background music
This commit is contained in:
parent
eb7486f57c
commit
562d47a723
2 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue