feat(gameover): play gameover sound
This commit is contained in:
parent
9f055c6bb8
commit
dcad4ad0a5
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
package handlers
|
package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"tetris/assets"
|
||||||
|
"tetris/engine/audio"
|
||||||
"tetris/engine/render"
|
"tetris/engine/render"
|
||||||
"tetris/game/state"
|
"tetris/game/state"
|
||||||
|
|
||||||
|
|
@ -10,6 +12,7 @@ import (
|
||||||
type GameOver struct{}
|
type GameOver struct{}
|
||||||
|
|
||||||
func (GameOver) Enter() {
|
func (GameOver) Enter() {
|
||||||
|
audio.Play(assets.SFX_GAME_OVER)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (GameOver) Exit() {
|
func (GameOver) Exit() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue