feat(ui): menu should not call audio module directly, make it more modular with and onSelect event callback
This commit is contained in:
parent
bcd6025aa3
commit
a1756549f9
3 changed files with 27 additions and 10 deletions
10
game/uievents/select.go
Normal file
10
game/uievents/select.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package uievents
|
||||
|
||||
import (
|
||||
"tetris/assets"
|
||||
"tetris/engine/audio"
|
||||
)
|
||||
|
||||
func MenuSelect() {
|
||||
audio.Play(assets.SFX_MENU_SELECT)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue