1
0
Fork 0

feat(ui): menu should not call audio module directly, make it more modular with and onSelect event callback

This commit is contained in:
Henrik Hautakoski 2025-10-19 11:56:13 +02:00
parent bcd6025aa3
commit a1756549f9
3 changed files with 27 additions and 10 deletions

10
game/uievents/select.go Normal file
View file

@ -0,0 +1,10 @@
package uievents
import (
"tetris/assets"
"tetris/engine/audio"
)
func MenuSelect() {
audio.Play(assets.SFX_MENU_SELECT)
}